首页 > 解决方案 > New VSCode extension can't find vscode

问题描述

Why does a new VSCode extension created with yeoman generator immediately not find vscode when starting debug?

Clean install of node, yeoman, and generator "code".

While I can continue to debug with this error, why isn't vscode found? Is it extraneous if debugging actually works?

标签: visual-studio-codevscode-extensionsvscode-debugger

解决方案


键入 Ctrl+` 以获取控制台,然后npm i您将收到类似于此的消息

检测到的 VS 代码引擎版本:^1.31.0 找到符合引擎范围的最小版本:1.31.0 从以下位置获取 vscode.d.ts: https ://raw.githubusercontent.com/Microsoft/vscode/7c66f58312b48ed8ca4e387ebd9ffe9605332caa/src/vs/vscode .d.ts vscode.d.ts 安装成功!

在那之后,事情应该是大块头。


推荐阅读