Why my vscode always show building when I run extension?

Viewed 163

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.

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. Watching for file changes.

No error message.

2 Answers

I have the same issue. Since it is watching for file changes, I change info message(e.g. change vscode.window.showInformationMessage('Hello World!') to vscode.window.showInformationMessage('Hello VSCode!')) and save, then it works.

i encounted the same problem just now, i found the distinction between my project and offical tutorial that is the webpack property

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
Related