microsoft / vscode

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

Browsing product icons through command palette shows tofu characters #198687

Closed berkeinkobe-easypost closed 11 months ago

berkeinkobe-easypost commented 11 months ago

Type: Bug

  1. Open command palette
  2. Select "Preferences: Product Icon Theme"
  3. Select "+ Browse additional Product Icon Themes ..."
  4. Use the up- and down-arrows to select Product Icon Themes. Tofu characters will appear for most changed icons.

VS Code version: Code 1.84.1 (2b35e1e6d88f1ce073683991d1eff5284a32690f, 2023-11-06T12:35:59.022Z) OS version: Windows_NT x64 10.0.22621 Modes: Unsupported

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 x 2592)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.83GB (4.81GB free)| |Process Argv|--crash-reporter-id a8a108d8-2852-4362-952b-242a79944f2d| |Screen Reader|no| |VM|0%|
Extensions (38) Extension|Author (truncated)|Version ---|---|--- apex-pmd|chu|0.6.2 codeium|Cod|1.4.20 vscode-eslint|dba|2.4.2 gitlens|eam|14.5.0 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|10.1.0 lana|Fin|1.10.3 vscode-firefox-debug|fir|2.9.10 vscode-power-mode|hoo|3.0.2 output-colorizer|IBM|0.1.2 rainbow-csv|mec|3.8.0 python|ms-|2023.20.0 vscode-pylance|ms-|2023.11.10 remote-ssh|ms-|0.107.0 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.1 foxpro|new|1.4.12 csv-to-table|php|1.4.0 vscode-xml|red|0.26.1 vscode-yaml|red|1.14.0 text-marker|ryu|1.11.0 glassit|s-n|0.2.6 analyticsdx-vscode|sal|1.0.0 analyticsdx-vscode-core|sal|1.0.0 analyticsdx-vscode-templates|sal|1.0.0 salesforce-vscode-slds|sal|1.4.8 salesforcedx-vscode|sal|59.5.1 salesforcedx-vscode-apex|sal|59.5.1 salesforcedx-vscode-apex-debugger|sal|59.5.1 salesforcedx-vscode-apex-replay-debugger|sal|59.5.1 salesforcedx-vscode-core|sal|59.5.1 salesforcedx-vscode-lightning|sal|59.5.1 salesforcedx-vscode-lwc|sal|59.5.1 salesforcedx-vscode-soql|sal|59.5.1 salesforcedx-vscode-visualforce|sal|59.5.1 vscode-pets|ton|1.25.1 lorem-ipsum|Tyr|1.3.1 highlight-matching-tag|vin|0.11.0 (6 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30880072 vscaac:30438847 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 2e4cg342:30602488 89544117:30613380 showlangstatbar:30737416 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 synctok:30869157 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixtcf:30871695 pythonregdiag2:30871582 pyreplss1:30879912 pythonmypyd1:30879173 pythoncet00cf:30874137 2e7ec940:30883390 pythontbext0:30879054 dsvsc016:30880769 dsvsc018:30880894 aa_t_chat:30882232 ```
vscodenpa commented 11 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.84.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

kwmbe commented 11 months ago

This also happens in the latest version of VSCode.

aeschli commented 11 months ago

Looks like there was a change in the CSP settings. https://github.com/microsoft/vscode/commit/4a21266bdd0b1245e1f5932e1fcf7f8cb0c778f1

workbench.html:1 Refused to load the font 'https://piousdeer.vscode-unpkg.net/piousdeer/adwaita-theme/1.1.0/extension/product-icons/adwaita-icons.ttf' because it violates the following Content Security Policy directive: "font-src 'self'
                    vscode-remote-resource:
                    vscode-managed-remote-resource:".

@bpasero Can we add back the access to vscode-unpkg ?