Allow providing a custom binary path for ZLS and other language servers.
Check for existing issues
- [X] Completed
Describe the feature
Excited to see merging of the Zig integration. I built the editor locally to try it out, and it's great to see syntax highlighting for it finally.
But I have the nightly version of zig and zls installed on my machine. Zed seems to load the stable version 0.11. That makes it unable to parse the build.zig in Bun because of new features the language has seen that have not been released into stable.
I solve this in VSCode with these options:
Furthermore, in Bun's repo, we hardcode a specific path relative to the project as our build system downloads a specific version of the compiler.
(the .exe is a specific workaround because Windows binaries must have .exe as a suffix; on Posix we symlink the extensionless binary to a .exe to get this working on all platforms seamlessly)
Honestly would be amazing if Zed could just peek at the vscode config and steal the properties to make this "just work", but I believe the proper feature request is having some Zed equivalents of these settings. I could not find any within the code so I assume they do not exist.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
Sorry, ~~it seems this isnt a issue with ZLS. but rather the grammar.~~ auguste says to me it is a ZLS version issue.
I believe my feature request is still valid as I do need to configure specific versions of the compiler.
Related:
- #4978
It seems #9293 opens up the door to add this to Zig, which would solve my own use case.
I'm not confident enough in my Rust skills to PR it https://github.com/zed-industries/zed/commit/d40fb6a54168832bb71768302a26f0d41f9f6736