-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Wrong token colors display in editor #89174
Comments
Been having the same issue, doesn't seemed to be tied to anything but the initialization of JS/TS language features. Probably related to #77140 as I'm not seeing the issue in non insider builds. This also has nothing to do with the integrated terminal. |
Version: 1.42.0-insider (system setup) In the latest release function and type names are colored right, but this time variables became blue (because of wrong color inference only?) While "Initializing JS/TS language features" message is shown, everything works right. After initialization variables become colored blue |
Thus is caused bugs in by semantic highlighting that was just added. Some fixes have already gone in:
Sorry for the trouble and I hope we get all the issue fixed soon. Please let me know if you still see issues with tomorrows I-Build. If you want to turn off semantic highlighting, you can use |
Oh, yes, that's a bug that I wanted to fix
That's #89337 |
VSCode InfoVersion: 1.42.0-insider (user setup)Commit: be0aca7 Date: 2020-01-31T13:53:58.701Z Electron: 6.1.6 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18363 Though I don't have this problem with TS/JS, I encountered this with my own language server: The Inspect Hover told me that these tokens in the second line were applied correctly, but they did not have the specific color. This happened after I deleted some tokens in the end of the last line. I was using the SemanticTokensBuilder provided by |
I think all the mentioned issues got fixed.
Please file a new issue if you still see problems with semantic colors in TypeScript. @SPGoding Please file a separate issue with the info of what tokens are created. |
Issue Type: Bug
description:
While "Initializing JS/TS language features" message is shown, everything works right.
But, after initialization, some tokens (type and function names) somehow become colored as plain text.
Meanwhile token colors are still inferred right.
Steps to reproduce:
VS Code version: Code - Insiders 1.42.0-insider (c4d53a1, 2020-01-23T05:39:57.148Z)
OS version: Windows_NT x64 10.0.18363
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: