-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
JS semantic highlighting in some instances makes code actually harder to read #91068
Comments
This works as intended after implementation of Semantic highlighting for TypeScript & JavaScrip It is enabled by default in Insider builds and can be turned off with /cc @aeschli |
Interesting example.
|
Ah. It seems this feature is working against me. Thanks, I'll just disable it. The problem is, it causes this sort of messed-up code for things like Mongoose model definitions: (also I think it is very useful to have |
I fixed the |
Issue Type: Bug
For a few days now I'm seeing an issue with JS syntax highlighting. I'm using latest VSCode Insiders and I tried with extensions disabled, and it still happens.
Suppose I have a JS file with these contents:
When I start VSCode, initially it looks correct:
But after ~10 seconds, it changes to a slightly messed-up state:
Notice how the
console
became light-blue andbbb
became yellow! (I noticed that what makes object keys yellow is when their value is a single word that happens to be highlighted in green.)It stays this way from then on. This makes my JS files much harder to read.
VS Code version: Code - Insiders 1.43.0-insider (9c341b3, 2020-02-20T05:39:38.179Z)
OS version: Windows_NT x64 10.0.18363
Remote OS version: Linux x64 4.4.0-18362-Microsoft
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: