-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Semantic tokens for typescript #2802
Conversation
My understanding is that you can use them.
Do you know what it looks like in a typescript file? |
Yes. It's just a very little chance that something doesn't work on an older version and we tested in a newer version so we didn't know. If you think it's ok I'll bump it.
Should be the same as my current implementation. I haven't customized it. Because computed properties are method in the option object it has been highlighted as method not property. |
You can bump vscode version in the test. 👍
If same, I think we can keep it. Get feedback after the release. |
I will take a look on weekend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry for the late reply.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixed #1904
Fixed #2687
Fixed #2434
Fixed #2687
implentation
Add semantic token feature for script region. Due to typescript's implementation. It's currently not available for js. Also because of that, this is currently not available in interpolation mode. But I still left some merging strategy in the project service for potential future implementation.
A couple of things like to discuss.
There's some new built-in vscode command in 1.53
Wondering if I should update the integration test to use it. The advantage is it's more integrated than a language-server request. And I don't have to copy the semantic token legend to the test script. A disadvantage is we might accidentally ship features not compatible with 1.52.
Computed member is highlighted as a method. Should we need to override it?
screenshot
Here is some screenshot comparison. The theme is GitHub dark.
Without semantic tokens
With semantic tokens
Without
With