简体   繁体   English

为什么我的 vscode 在我运行扩展时总是显示构建?

[英]Why my vscode always show building when I run extension?

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

I create a hello world from tutorial.我从教程创建了一个你好世界。 Why my vscode always show building when I run extension.为什么我的 vscode 在我运行扩展时总是显示构建。

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

No error message.没有错误信息。

I have the same issue.我有同样的问题。 Since it is watching for file changes, I change info message(eg change vscode.window.showInformationMessage('Hello World!') to vscode.window.showInformationMessage('Hello VSCode!') ) and save, then it works.由于它正在监视文件更改,因此我将信息消息(例如将vscode.window.showInformationMessage('Hello World!')更改为vscode.window.showInformationMessage('Hello VSCode!') )并保存,然后它就可以工作了。

i encounted the same problem just now, i found the distinction between my project and offical tutorial that is the webpack property我刚才遇到了同样的问题,我发现我的项目和官方教程之间的区别是webpack属性

resolve解决

  • remove your proejct file删除您的项目文件
  • follow the offical tutorial again(each step each parameter)再次遵循官方教程(每一步每个参数)
  • and then debugging, it's will run perfectly然后调试,它将完美运行

sample样本

? 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Javascript并不总是在Chrome扩展程序中运行,我应该何时运行它? - Javascript not always working in Chrome Extension, when should I run it? 当用户创建嵌入式终端时,如何从我的 VSCode 扩展中更改嵌入式终端的名称? - How do I change the name of the embedded terminal from my VSCode extension when it is created by the user? 如何使用 VSCode 扩展运行 Jest 测试? - How can I run Jest test in band with the VSCode extension? 为什么在构建 webpack.mix.js 时我的.css 文件不会出现在公共目录中? - Why won't my .css file show up in the public directory when building webpack.mix.js? 运行 vscode 扩展单元测试 - Run vscode extension unit test 为什么在运行代码时不显示数字,正方形和立方体? - Why dont number ,square and cube show when I run the code? 当控制器或指令重新初始化时,为什么我的ready函数总是运行 - Why does my ready function always run when controller or directive reinisilize 为什么我的 fetch 正文总是在 Google Chrome 扩展程序中返回 null - why my fetch body always return null in Google Chrome Extension 为什么在我运行注入脚本的 chrome 扩展程序后页面停止 - Why does the page stop after I run my chrome extension which injects scripts 悬停时如何获取VSCode以显示我的库函数参数 - How to get VSCode to show my libraries function arguments when hovered
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM