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

Implement findDocumentSymbols2() #152

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

johnsoncodehk
Copy link
Contributor

@johnsoncodehk johnsoncodehk commented Feb 22, 2023

Look to https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_documentSymbol, DocumentSymbol is a better data structure. Added findDocumentSymbols2() API to return DocumentSymbol[] and align with vscode-css-languageservice and vscode-json-languageservice.

Fix #130.

@johnsoncodehk johnsoncodehk marked this pull request as draft February 22, 2023 11:12
@johnsoncodehk johnsoncodehk changed the title refactor: return DocumentSymbol[] for findDocumentSymbols() feat: implement findDocumentSymbols2() Feb 22, 2023
@johnsoncodehk johnsoncodehk marked this pull request as ready for review February 22, 2023 11:26
@johnsoncodehk johnsoncodehk changed the title feat: implement findDocumentSymbols2() Implement findDocumentSymbols2() Feb 22, 2023
@aeschli aeschli self-assigned this Sep 8, 2023
@aeschli aeschli added this to the September 2023 milestone Sep 8, 2023
@aeschli aeschli merged commit 9ac7220 into microsoft:main Sep 8, 2023
4 checks passed
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.

Support for DocumentSymbol format
3 participants