为什么在运行扩展程序时,我的vscode总是显示构建状态?

时间:2020-07-27 03:32:28

标签: javascript node.js typescript visual-studio-code

https://code.visualstudio.com/api/get-started/your-first-extension

我通过教程创建了一个世界。 为什么在运行扩展程序时,我的vscode总是显示构建状态。

执行任务:npm run watch < helloworld@0.0.1观看D:\ work \ Plugin \ helloworld tsc -watch -p ./ [11:28:42├F10:AM┤]发现0个错误。监视文件更改。

没有错误消息。

1 个答案:

答案 0 :(得分:-2)

我刚才也遇到了同样的问题, 我发现我的项目和官方教程之间的区别是 webpack 属性

解决

  • 删除您的项目文件
  • 再次关注官方教程(每一步每个参数)
  • 然后调试,它会完美运行

示例

? What type of extension do you want to create? New Extension (TypeScript)
? What's the name of your extension? vsce-window-title
? What's the identifier of your extension? y
? What's the description of your extension? y
? Initialize a git repository? Yes
? Bundle the source code with webpack? No
? Which package manager to use? yarn