| Summary: | Improve editor opening when using lsp4e.debug's source locators | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Jonah Graham <jonah> |
| Component: | LSP4E | Assignee: | Jonah Graham <jonah> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | jonah, mistria |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=516470 https://git.eclipse.org/r/134802 https://git.eclipse.org/c/lsp4e/lsp4e.git/commit/?id=fda12d10396d27d017aa8f2d442c832e297d8fd9 |
||
| Whiteboard: | |||
|
Description
Jonah Graham
This is particularly needed for CDT so that CDT's C/C++ editor opens when a breakpoint is hit. Wouldn't IDE.openEditor(file) work? New Gerrit change created: https://git.eclipse.org/r/134802 (In reply to Mickael Istria from comment #2) > Wouldn't IDE.openEditor(file) work? No, the platform debug infra require we return an editor id so that somewhere else in the chain can actually do the opening. See org.eclipse.debug.ui.ISourcePresentation.getEditorId(IEditorInput, Object) For ref, the similar (but different) implementation of IDE.openEditor() used by debug is found here: org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(ISourceLookupResult, IWorkbenchPage) Gerrit change https://git.eclipse.org/r/134802 was merged to [master]. Commit: http://git.eclipse.org/c/lsp4e/lsp4e.git/commit/?id=fda12d10396d27d017aa8f2d442c832e297d8fd9 |