microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.65k stars 28.68k forks source link

Syntax highlight don't support JS' ?: optional chaining operator? #101894

Closed glacjay closed 4 years ago

glacjay commented 4 years ago

Issue Type: Bug

Tried many color theme, and the colors all break after the ?: operator.

VS Code version: Code 1.46.1 (cd9ea6488829f560dc949a8b2fb789f3cdc05f5d, 2020-06-17T21:13:20.174Z) OS version: Windows_NT x64 10.0.18363

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz (4 x 3696)| |GPU Status|2d_canvas: enabled
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| |Load (avg)|undefined| |Memory (System)|31.90GB (18.98GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (30) Extension|Author (truncated)|Version ---|---|--- theme-verdandi|be5|2.0.1 vscode-custom-css|be5|3.0.10 markdown-mermaid|bie|1.5.1 better-toml|bun|0.3.2 thief-book|C-T|0.0.9 vscode-autohotkey-plus|cwe|2.4.7 autoit|Dam|1.0.5 vscode-eslint|dba|2.1.6 githistory|don|0.6.5 xml|Dot|2.5.0 EditorConfig|Edi|0.15.1 prettier-vscode|esb|5.1.3 shell-format|fox|7.0.1 toml-formatter|ice|0.0.3 sublime-babel-vscode|jos|0.2.10 vscode-language-pack-zh-hans|MS-|1.46.3 node-debug2|ms-|1.42.4 snippet-creator|nik|0.0.5 java|red|0.64.0 rust|rus|0.7.8 trailing-spaces|sha|0.3.1 language-stylus|sys|1.11.0 stylus-supremacy|thi|2.14.5 html-preview-vscode|tht|0.2.5 ghosttext|tok|1.1.0 vscode-jsx-style|upp|1.0.1 vim|vsc|1.14.5 markdown-auto-toc|wib|0.3.0 markdown-pdf|yza|1.4.4 markdown-all-in-one|yzh|3.1.0 (2 theme extensions excluded)
mjbvz commented 4 years ago

This is most likely caused by one of your extensions, specifically sublime-babel-plus-vscode which was last updated 3 years ago

glacjay commented 4 years ago

Yeah it works! Thank you.