microsoft / vscode

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

all syntax highlighting is gone following the November VSCode update #168342

Closed DopamineDriven closed 1 year ago

DopamineDriven commented 1 year ago

Type: Bug

Update to the latest VSCode release -- all syntax highlighting is gone in every file type I've tried (.tsx, .ts, .js, .mjs, .d.ts, .json, .yaml, .md)

VS Code version: Code 1.74.0 (5235c6bb189b60b01b1f49062f4ffa42384f8c91, 2022-12-05T16:38:16.075Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: No Remote OS version: Linux x64 5.15.79.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
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)|undefined| |Memory (System)|15.74GB (4.06GB free)| |Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu-20.04/home/dopaminedriven/takeda/virtual/turbo/headless-cms-team-exp-virtual-store-dev --remote=wsl+Ubuntu-20.04 --crash-reporter-id 7ae3219a-9a65-4a1e-bc76-635170553dfd| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-20.04| |OS|Linux x64 5.15.79.1-microsoft-standard-WSL2| |CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)| |Memory (System)|7.63GB (6.37GB free)| |VM|0%|
Extensions (85) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 vscode-m3u|af4|1.0.0 vscode-prisma-raw-query-sql|Aku|0.0.1 vscode-styled-jsx|bla|2.1.1 ndjson-colorizer|bus|1.0.0 language-postcss|cpy|1.1.0 postcss|css|1.0.9 emoji-snippets|dev|1.5.3 apacheconf-snippets|eim|1.3.0 vscode-firefox-debug|fir|2.9.8 vscode-graphql-syntax|Gra|1.0.5 vscode-nginx-conf-hint|han|0.3.0 sanity-snippets|hdo|1.0.0 better-dockerfile-syntax|jef|1.0.2 vscode-position|jtr|1.1.2 vsc-python-indent|Kev|1.18.0 vscode-apache|mrm|1.2.0 remote-containers|ms-|0.266.1 remote-ssh|ms-|0.93.2022112815 remote-ssh-edit|ms-|0.84.0 remote-wsl|ms-|0.72.0 vscode-remote-extensionpack|ms-|0.23.0 remote-explorer|ms-|0.1.2022112409 python-extended-snippets|tus|0.0.1 vscode-mdx|uni|1.0.3 vscode-icons|vsc|12.0.1 fontforge-vscode|xia|0.0.2 vscode-openapi|42C|4.15.10 nestjs-files|Abh|0.5.1 vscode-nginx-conf|ahm|0.1.3 bala-bks-docker-snippets|bal|0.1.3 vscode-linux-binary-preview|bet|2.4.0 shell-syntax|bma|1.0.3 vscode-tailwindcss|bra|0.9.1 gltf-vscode|ces|2.3.16 npm-intellisense|chr|1.4.3 vscode-github-actions|csc|0.24.4 vscode-redis-client|cwe|6.0.0 vscode-eslint|dba|2.2.6 docs-yaml|doc|0.2.9 sync-env|don|1.0.8 githistory|don|0.6.19 xml|Dot|2.5.1 gitlens|eam|13.1.1 EditorConfig|Edi|0.16.4 prettier-vscode|esb|9.10.3 code-runner|for|0.11.8 shell-format|fox|7.2.2 lintlens|ghm|6.0.0 vscode-pull-request-github|Git|0.56.0 go|gol|0.36.0 stylelint-plus|hex|0.56.6 yaml-plus-json|hil|1.11.0 rest-client|hum|0.25.1 vscode-postfix-ts|ipa|1.11.3 svg|joc|1.4.23 vscode-map-preview|jum|0.5.9 remotefs|lix|0.0.16 json-to-ts|Mar|1.7.5 template-string-converter|meg|0.6.0 vscode-docker|ms-|1.23.1 cpptools|ms-|1.13.6 vscode-typescript-next|ms-|5.0.202211170 gitpatch|par|0.2.1 vscode-yaml-sort|Pas|6.0.1 open-html-in-browser|pea|2.1.10 vscode-versionlens|pfl|1.0.10 gotestexplorer|pre|0.1.13 prisma|Pri|4.7.1 nginx-formatter|ray|0.0.13 vscode-commons|red|0.0.6 vscode-yaml|red|1.10.1 rust-analyzer|rus|0.4.1311 vs-code-prettier-eslint|rve|5.0.4 vscode-sanity|san|0.1.4 markdown-preview-enhanced|shd|0.6.5 vscode-stylelint|sty|1.2.3 sass-indented|syl|1.8.23 pdf|tom|1.2.0 vscode-counter|uct|3.1.0 intellicode-api-usage-examples|Vis|0.2.6 vscodeintellicode|Vis|1.2.29 txt-syntax|xsh|0.2.1 vscode-mdx-preview|xyc|0.3.3 json|Zai|2.0.2 (4 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 vscccc:30610679 pyindex848:30577860 nodejswelcome1cf:30587006 2e4cg342:30602488 gswce1:30612156 iaj6b796:30613358 dbltrim-noruby:30604474 89544117:30613380 fim-prod:30623723 ejf25101:30620729 ```
DopamineDriven commented 1 year ago

image

DopamineDriven commented 1 year ago

For anyone else experiencing this, it's because I had the following code in my settings.json

    "editor.tokenColorCustomizations": {
        "comments": "#119711",
        "[Dark+ (Plus)]": {"comments": "#119711" },
        "textMateRules": [
          {"scope": ["punctuation.separator"],
        "settings": {
            "foreground": "#a0a5ab",
            "fontStyle": "bold"
        }}
        ]
      },

After removing the "editor.tokenColorCustomizations" option the expected theme was restored in all files