Skip to content
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

Ensure zls is used for Zig as a primary language server (cherry-pick #22511) #22513

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked Ensure zls is used for Zig as a primary language server (#22511)

Part of #22415

I've noticed that I cannot work with any Zig projects, as there were no
"go to definition", formatting and inlay hints.

After debugging, I've discovered that typos was registered as a first
language server, becoming the "primary" one for Zig.
That one does not have any proper capabilities, hence all corresponding
LSP requests were no-op.

While this solution is not ideal (I wonder, how many other set-ups are
broken due to the same thing?), we'd better fix things for now this way
at least.

Release Notes:

  • Fixed zls not working properly when typos extension is installed

Part of #22415

I've noticed that I cannot work with any Zig projects, as there were no
"go to definition", formatting and inlay hints.

After debugging, I've discovered that `typos` was registered as a first
language server, becoming the "primary" one for Zig.
That one does not have any proper capabilities, hence all corresponding
LSP requests were no-op.

While this solution is not ideal (I wonder, how many other set-ups are
broken due to the same thing?), we'd better fix things for now this way
at least.

Release Notes:

- Fixed `zls` not working properly when `typos` extension is installed
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 31, 2024
@SomeoneToIgnore SomeoneToIgnore merged commit 68fe03a into v0.167.x Dec 31, 2024
11 checks passed
@SomeoneToIgnore SomeoneToIgnore deleted the cherry-pick-275de4-v0.167.x branch December 31, 2024 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant