Skip to content

Commit 1bdde64

Browse files
authored
workspace: fix vscode-zig update (zml#217)
The extension checks that the ZLS path is absolute, else it will run which to find it in the PATH. Add a heading / so that the path looks absolute. This works because we use ${workspaceFolder}.
1 parent 8ec91a0 commit 1bdde64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"C_Cpp.clang_format_style": "Microsoft",
2424
"zig.formattingProvider": "zls",
2525
"zig.path": "x",
26-
"zig.zls.path": "${workspaceFolder}/tools/zls.sh",
26+
"zig.zls.path": "/${workspaceFolder}/tools/zls.sh",
2727
"[zig]": {
2828
"editor.suggest.insertMode": "replace",
2929
"editor.stickyScroll.defaultModel": "foldingProviderModel",

0 commit comments

Comments
 (0)