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(document_symbols): handle SymbolInformation responses #1644

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pynappo
Copy link
Collaborator

@pynappo pynappo commented Dec 31, 2024

Closes #1085.

motivation

LSP states that a document symbol request can return SymbolInformation objects or DocumentSymbol.

notes

Haven't tested with the servers that use said older implementations yet, but just based on the types it should work?

edit: tested with bash_ls, seems to work fine

@pynappo pynappo force-pushed the 1085-fix-docsymbols-range branch from 2671f76 to 9f83535 Compare January 2, 2025 21:33
@pynappo pynappo requested a review from nhat-vo January 13, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: failed to open document symbols with pylsp [attempt to index local ‘range’ (a nil value)]
1 participant