microsoft / vscode

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

Typescript syntax highlighting totally fails #166567

Closed damevin closed 1 year ago

damevin commented 1 year ago

Type: Bug

On every typescript files, color highlightning fails

Exemples on all Typescript files

image

I have rebooted my computer, re-install vsCode, updated extensions, disabled extensions for testing, nothing seems to work

VS Code version: Code 1.73.1 (Universal) (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T02:08:38.961Z) OS version: Darwin arm64 22.1.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M2 (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|6, 24, 17| |Memory (System)|16.00GB (0.09GB free)| |Process Argv|--crash-reporter-id e6bb3dc6-ef3b-4f3e-a8cc-ed56edac0c44| |Screen Reader|yes| |VM|0%|
Extensions (38) Extension|Author (truncated)|Version ---|---|--- vscode-tailwindcss|bra|0.9.1 path-intellisense|chr|2.8.1 postcss|css|1.0.9 vscode-eslint|dba|2.2.6 gitlens|eam|13.0.4 vscode-html-css|ecm|1.13.1 vsc-material-theme|Equ|33.5.0 vsc-material-theme-icons|equ|2.4.0 prettier-vscode|esb|9.9.0 copilot|Git|1.59.7338 svg|joc|1.4.22 i18n-ally|lok|2.8.1 ts-error-translator|mat|0.5.1 dotenv|mik|1.0.1 vue-volar-extention-pack|Mis|1.1.5 vscode-docker|ms-|1.22.2 vscode-language-pack-fr|MS-|1.73.11090913 remote-containers|ms-|0.262.3 vscode-typescript-next|ms-|5.0.20221116 vsliveshare|ms-|1.0.5762 material-icon-theme|PKi|4.22.0 vs-code-prettier-eslint|rve|5.0.4 vue-vscode-snippets|sdr|3.1.1 gitmoji-vscode|sea|1.1.2 vscode-scss-formatter|sib|2.4.3 html5-boilerplate|sid|1.1.1 svg-preview|Sim|2.8.3 autoimport|ste|1.5.4 addDocComments|ste|0.0.8 sass-indented|syl|1.8.22 alphabetical-sorter|ue|2.0.1 vscode-conventional-commits|viv|1.24.3 volar|Vue|1.0.9 vscode-typescript-vue-plugin|Vue|1.0.9 fig|wit|0.0.7 vue|Wsc|1.0.26 JavaScriptSnippets|xab|1.8.0 vitest-explorer|Zix|0.2.32 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 pyindex848cf:30577861 nodejswelcome1:30587005 fc301958:30595537 3biah626:30602489 gswce1:30612156 iaj6b796:30613358 dbltrim-noruby:30604474 89544117:30613380 ```
mikkovalla commented 1 year ago

Fails for JavaScript and JavaScript React aswell :/

emanuel-baldi-mirror commented 1 year ago

Yes, I thought I was going insane too. Looking in the extensions, I found that the cause was the vscode-typescript-next plugin. Once uninstalled, the colors are back.

Srh07 commented 1 year ago

Yes, I thought I was going insane too. Looking in the extensions, I found that the cause was the vscode-typescript-next plugin. Once uninstalled, the colors are back.

I second this. Disabling this extension is enough.

gjsjohnmurray commented 1 year ago

/duplicate

QGIsK commented 1 year ago

Switching to the previous version seems to resolve this issue

image
VSCodeTriageBot commented 1 year ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!