[英]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
属性
? 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.