vscode-leetcode
vscode-leetcode copied to clipboard
Problem preview css not properly loaded in WSL
🐛 Bug Report
When using via WSL, problem preivew page did not load markdown.css
properly, which leads to incorrect font settings.
Left side is the problem preview of this extension. It is obvious that the monospace font is ugly NSimSun. Right side is a markdown preview, which is rendered as expected.
To Reproduce
- Connect VSCode to WSL.
- Install extension for WSL.
- Login and open arbitrary problem preivew.
Expected behavior
Problem preview page renders with same CSS of markdown.
Your Environment
- os: Win11 + WSL2
- extension settings: Mostly defaults
- nodejs version: v20.2.0
- vscode version: 1.78.2
- extension version: v0.18.1
FYI:
It seems that the extension load the css from a wrong domain:
It seems that the extension tries to load a file in WSL by a host domain (file%2B.vscode-resource.vscode-cdn.net
).
The correct domain in my case is vscode-remote%2Bwsl-002bopensuse-002dtumbleweed.vscode-resource.vscode-cdn.net
, which is obviously related to the WSL configuration.