-
Notifications
You must be signed in to change notification settings - Fork 188
Closed
Labels
Description
following eclipse-jdtls/eclipse.jdt.ls#3666, this code:
Lines 468 to 478 in 26b05eb
| private static String getFileURI(IClassFile classFile) { | |
| String packageName = classFile.getParent().getElementName(); | |
| String jarName = classFile.getParent().getParent().getElementName(); | |
| try { | |
| return new URI(JDT_SCHEME, "contents", PATH_SEPARATOR + jarName + PATH_SEPARATOR + packageName | |
| + PATH_SEPARATOR + classFile.getElementName(), classFile.getHandleIdentifier(), null) | |
| .toASCIIString(); | |
| } catch (URISyntaxException e) { | |
| return null; | |
| } | |
| } |
should be replaced by return JDTUtils.toUri(classFile);
I think it should be the proper fix for redhat-developer/vscode-java#4356
cc @chagong
Reactions are currently unavailable