-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode extension overrides config.json options #229
Comments
Could you clarify what you have set in your |
Due to running in a bazel sandbox, we actually set the It used to be that we could set a non existent path, vscode-zig would complain but at least it didn't override the ZLS options. Now starting https://github.com/ziglang/vscode-zig/pull/222/files#diff-4af55eca91ea0a137b682c0a4f42fc9d6a8a6c56c9484f6974363204fa622f4aR14, because when that happens, that now prevents the whole extension from loading. Same for zls.json {
"zig_lib_path": "/private/var/tmp/_bazel_steeve/3a999f4335ba7d297daf0feac587c784/execroot/_main/bazel-out/darwin_arm64-dbg/bin/third_party/zls/zls.zls_runner.sh.runfiles/rules_zig~~zig~zig_0.14.0-dev.363_Pc3faae6bf_aarch64-macos/lib",
"zig_exe_path": "/private/var/tmp/_bazel_steeve/3a999f4335ba7d297daf0feac587c784/execroot/_main/bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/third_party/zls/zig.zig_runner.sh",
"global_cache_path": "/private/var/tmp/zig-cache"
}
"zig.formattingProvider": "zls",
"zig.initialSetupDone": true,
"zig.zls.path": "${workspaceFolder}/tools/zls.sh", If we disable the formatting provider, the extension loads again but then we lose the formatting, which is kind of a big deal... |
The formatting issue should have been fixed by #233. The rest of the issue may be fixed by #252. Could you check whether that resolves your issue? Feel free to wait for the PR to merged and featured in the next release of the extension. I assume that this issue is about zml. I would like to point out that the settings.json should be updated. - "zig.formattingProvider": "zls",
- "zig.initialSetupDone": true,
"zig.path": "${workspaceFolder}/tools/zig.sh",
- "zig.zls.globalCachePath": null,
"zig.zls.path": "${workspaceFolder}/tools/zls.sh",
Not sure how this ties in with bazel and the rest of the project but may even go further and remove - "zig.formattingProvider": "zls",
- "zig.initialSetupDone": true,
- "zig.path": "${workspaceFolder}/tools/zig.sh",
- "zig.zls.globalCachePath": null,
- "zig.zls.path": "${workspaceFolder}/tools/zls.sh",
+ "zig.version": "0.13.0", You can find more information about the version management capabilities of the extension in #230. |
Hello
If ZLS is started with a custom
config.json
, unfortunately the extension will override the settings when sending its configuration.Perhaps it could be possible to only send the keys that are set by the user ?
Here is a sample log:
Thank you for this great extension !
The text was updated successfully, but these errors were encountered: