Skip to content

Change JSON symbol information to document symbol#3894

Merged
aeschli merged 3 commits intomicrosoft:mainfrom
tamayika:feature/json_docsym
Dec 20, 2023
Merged

Change JSON symbol information to document symbol#3894
aeschli merged 3 commits intomicrosoft:mainfrom
tamayika:feature/json_docsym

Conversation

@tamayika
Copy link
Copy Markdown
Contributor

@tamayika tamayika commented Apr 6, 2023

Playground

I found sticky scroll is not available for JSON.
This is because JSON's SymbolInformation is not hierarchical and we should use DocumentSymbol instead of SymbolInformation to support sticky scroll.

switch (kind) {
case lsTypes.SymbolKind.File:
return mKind.Array;
return mKind.File;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a small mistake in addition.

@tamayika
Copy link
Copy Markdown
Contributor Author

tamayika commented Oct 4, 2023

@hediet Please review this PR.

@aeschli
Copy link
Copy Markdown
Contributor

aeschli commented Dec 15, 2023

Thanks a lot, @tamayika !

@aeschli aeschli added this to the December / January 2024 milestone Dec 15, 2023
@aeschli aeschli merged commit dfca77d into microsoft:main Dec 20, 2023
@tamayika tamayika deleted the feature/json_docsym branch December 20, 2023 09:54
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants