Skip to content

Commit

Permalink
open file from type hierarchy when file not in workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
ghentschke committed Aug 24, 2023
1 parent c4d9f08 commit 2a8a9af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion org.eclipse.lsp4e/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Language Server Protocol client for Eclipse IDE (Incubation)
Bundle-SymbolicName: org.eclipse.lsp4e;singleton:=true
Bundle-Version: 0.17.1.qualifier
Bundle-Version: 0.17.2.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-17
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.12.0",
org.eclipse.equinox.common;bundle-version="3.8.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,7 @@ public void controlResized(ControlEvent e) {
public void doubleClick(final DoubleClickEvent event) {
var selection = ((IStructuredSelection) event.getSelection()).getFirstElement();
if (selection instanceof TypeHierarchyItem item) {
try {
var symbolsContainer = cachedSymbols.get(new URI(item.getUri()));
if (symbolsContainer != null) {
LSPEclipseUtils.open(symbolsContainer.file.getLocationURI().toASCIIString(), item.getSelectionRange());
}
} catch (URISyntaxException e) {
LanguageServerPlugin.logError(e);
}
LSPEclipseUtils.open(item.getUri(), item.getSelectionRange());
}
}
});
Expand Down

0 comments on commit 2a8a9af

Please sign in to comment.