Skip to content

Commit 15d5e7f

Browse files
committed
Re-use URI creating method from utility class
1 parent ab2658b commit 15d5e7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/symbols/internal/SymbolIconProviderRegistry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ private SymbolIconProvider getIconProvider(Object symbol) {
143143
}
144144

145145
try {
146-
return URI.create(uri);
147-
} catch (IllegalArgumentException e) {
146+
return LSPEclipseUtils.toUri(uri);
147+
} catch (Exception e) {
148148
LanguageServerPlugin.logWarning("Failed to parse URI " + uri, e); //$NON-NLS-1$
149149
return null;
150150
}

0 commit comments

Comments
 (0)