问题描述
我在
如果我在此消息出现之前单击窗口外:
错误 socket挂断
有没有其他人看到过同样的错误并设法克服了?
正如评论中提到的,这似乎在此处讨论过.但是,我无法应用任何建议的修复:
在文件
src/vs/workbench/node/proxy.ts
中将.host
更改为.hostname
:我可以在我的系统上找不到这个文件.将文件
C:\Program Files (x86)\Microsoft VS Code\resources 中的相同(
:我找不到文件夹.host
更改为.hostname
)\app\out\vs\workbench\electron-main\sharedProcessMain.jselectron-main
或文件sharedProcessMain.js
> 在我的机器上.将
SSLStrict
更改为true
在我的网络管理员在我的机器上禁用 SSL 检查后,我能够安装一些扩展.
这并不理想,因为我不希望将其全部关闭.
重新启用检查后,我将用户设置
设置为
"http.proxyStrictSSL": true
我仍然无法下载软件包,但这似乎是问题所在.
I raised this as an issue on the VSCode github
I just installed Visual Studio Code
to try it out, but I ran into a problem almost immediately when trying to install any extension (following this).
After pressing ctrl + p
or F1
and then typing Extension
and selecting Install
, the program appears to search for a while. However, after a few seconds to a minute I see this error:
Error getaddrinfo ENOTFOUND marketplace.visualstudio.com marketplace.visualstudio.com:443
And if I click out of the window before this message appears:
Error socket hang up
Has anyone else seen the same error and managed to overcome?
As mentioned in the comments, this seems to be discussed here. However, I can't apply any of the suggested fixes:
Changing
.host
to.hostname
in the filesrc/vs/workbench/node/proxy.ts
: I can't find this file on my system.Changing the same (
.host
to.hostname
) in the fileC:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\electron-main\sharedProcessMain.js
: I can't find the folderelectron-main
or the filesharedProcessMain.js
on my machine.Changing
SSLStrict
totrue
I was able to install some extensions after my network admin disabled SSL Inspection on my machine.
This is not ideal as I wouldn't want this turned off for everything.
After re-enabling inspection, I set my User Settings
to
"http.proxyStrictSSL": true
I am still unable to download packages, but this does appear to be the problem.
这篇关于无法安装 Visual Studio Code 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!