【问题标题】:Why my vscode always show building when I run extension?为什么我的 vscode 在我运行扩展时总是显示构建?
【发布时间】:2020-11-16 08:52:43
【问题描述】:

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

我从教程创建了一个你好世界。 为什么我的 vscode 在我运行扩展时总是显示构建。

执行任务:npm run watch

没有错误信息。

【问题讨论】:

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


    【解决方案1】:

    我刚才遇到了同样的问题, 我发现我的项目和官方教程之间的区别是 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
    

    【讨论】:

      猜你喜欢
      • 2021-12-08
      • 1970-01-01
      • 1970-01-01
      • 2012-12-16
      • 2012-04-30
      • 1970-01-01
      • 2020-11-12
      • 2020-02-15
      • 1970-01-01
      相关资源
      最近更新 更多