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

Fix LS panic on missing symbols in client capabilities #1619

Merged
merged 3 commits into from
Feb 12, 2024

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Feb 8, 2024

This PR fixes two server panics related to symbols. The first one occurs when supported symbols are not part of the TextDocumentClientCapabilities sent by the client. The second is when supported symbols are missing from the workspace specific client capabilities.

In both cases, we now fall back to the list of symbols supported by the initial version of the protocol.

Closes #1349

@dbanck dbanck added the bug Something isn't working label Feb 8, 2024
@dbanck dbanck self-assigned this Feb 8, 2024
@dbanck dbanck requested a review from a team as a code owner February 8, 2024 11:55
internal/lsp/symbols.go Show resolved Hide resolved
@dbanck dbanck merged commit 0439669 into main Feb 12, 2024
21 checks passed
@dbanck dbanck deleted the b-fix-symbol-support branch February 12, 2024 08:40
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
2 participants