You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1、使用ssh连接wsl2
2、打开package.json文件
3、呈现问题警告信息为:
[{
"resource": "/mnt/c/Users/cmw10/Desktop/codes/jest-learn/package.json",
"owner": "generated_diagnostic_collection_name#0",
"code": "768",
"severity": 4,
"message": "Problems loading reference 'https://json.schemastore.org/package': Unable to load schema from 'https://json.schemastore.org/package': Failed to establish a socket connection to proxies: ["PROXY 127.0.0.1:7890"].",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 2
}]
VS Code version: Code 1.62.0 (b3318bc, 2021-11-03T15:23:01.379Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2
Get this issue occasionally with wsl2.
As mentioned in vscode document, the issue can be solved by --no-proxy-server option to disable proxy or simply specify the http_proxy and https_proxy using wsl server ip, which can be find from /etc/resolv.conf. The file is generated by wsl
Issue Type: Bug
1、使用ssh连接wsl2
2、打开package.json文件
3、呈现问题警告信息为:
[{
"resource": "/mnt/c/Users/cmw10/Desktop/codes/jest-learn/package.json",
"owner": "generated_diagnostic_collection_name#0",
"code": "768",
"severity": 4,
"message": "Problems loading reference 'https://json.schemastore.org/package': Unable to load schema from 'https://json.schemastore.org/package': Failed to establish a socket connection to proxies: ["PROXY 127.0.0.1:7890"].",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 2
}]
VS Code version: Code 1.62.0 (b3318bc, 2021-11-03T15:23:01.379Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (97)
(20 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: