我无法安装扩展名是Visual Studio Code . 我遇到了几个不同扩展的相同行为 .

我尝试了两种方法:

  • ctrl + shift + P ,然后 Extensions: Install Extensions . 我选择我的选择扩展名并按 install . 图标变暗并显示 installing ,但不会改变 . 该扩展程序似乎没有安装 .

  • 在集成终端中,我运行 code --install-extension <extension name> . 我得到了反馈 Found <extension name> in the marketplace. Installing... 几乎立即执行命令但没有安装扩展 .

我作为管理员运行VSCode版本1.12.2 . 我的机器正在运行Windows 10企业版 .

有人在这里熟悉这个问题吗?谢谢 .

编辑:问题在版本1.15.1中仍然存在,但现在在运行 code --install-extension <extension name> 后给出错误 . 错误如下:

(node:7412) UnhandledPromiseRejectionWarning: Unhandled promise rejections     
(rejection id:1): TypeError: this._state.then is not a function.
(node:7412) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.