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

Change JSON symbol information to document symbol #3894

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

tamayika
Copy link
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.

function toSymbolKind(kind: lsTypes.SymbolKind): languages.SymbolKind {
let mKind = languages.SymbolKind;

switch (kind) {
case lsTypes.SymbolKind.File:
return mKind.Array;
return mKind.File;
Copy link
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
Contributor Author

tamayika commented Oct 4, 2023

@hediet Please review this PR.

@aeschli
Copy link
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
3 checks passed
@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