We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c31a7bc commit b014315Copy full SHA for b014315
src/main/java/dev/latvian/mods/kubejs/client/VSCodeExt.java
@@ -51,6 +51,7 @@ public static boolean isInstalled() {
51
}
52
53
public static void openFile(Path path, int line, int column) {
54
- Util.getPlatform().openUri(URI.create("vscode://file/" + path.toAbsolutePath().toString().replace('\\', '/') + ":" + line + ":" + column));
+ var uri = path.toAbsolutePath().toUri();
55
+ Util.getPlatform().openUri(URI.create("vscode://file" + uri.getRawPath() + ":" + line + ":" + column));
56
57
0 commit comments