[Environment configuration] ubuntu2204 cannot display documents or pictures in VS-Code with ssh connection

System environment: ubuntu 22.04 LTS,
vs code
remote connection to other computers or devices for programming.
vscode加载web 视图,报错:“Error: Could not register serviceworkers: InvalidstateError: Failed to ....

Solution:

  1. Close VS Code;
  2. Execute in terminal code --no-sandbox.
  3. VS CodeIt will restart and can render and display remote 图片and markdownfiles normally.

reference:

https://blog.csdn.net/m0_58724783/article/details/127879777

Guess you like

Origin blog.csdn.net/zhoujinwang/article/details/130562246