Problem description
I followed the vscode tutorial on creating an extension, but I cannot reproduce the behavior of "the command popping up in the Command Palette", nor can I get breakpoints to hit.
My steps
- I followed the tutorial verbatim, that is
-
yo code
New Extenion (TypeScript)
- ...
- all the way to package manager:
npm
- Open the project with
code
- Press F5 (let's ignore the small error that I got that there's no problem matcher installed. It went away after installing the recommended extensions (
eamodio/vscode-tsl-problem-matcher
andMicrosoft/vscode-eslint
). - The Extension host pops up. There's no error.
- ctrl+shift+p, hello
Unfortunately the command hello world
doesn't pop up in the list.
Neither are the breakpoints hit in extension.ts
(like in this part of the tutorial).
The breakpoints are unhittable, i.e. their interior is white rather than red.
It seems the extension is not being loaded. What am I doing wrong? How can I fix it?
What I tried
I retried many attempts, triple checking my spellings and following of the tutorial. I tried a PC restart. I tried with and without webpack bundling. I reran tsc
. I downgraded typescript to 4.7.4 (as later on it warns that 4.8.2 isn't officially supported)
Some possibly relevant version numbers: Windows 10, npm 8.5.5, yo 4.3.0, vscode 1.69.2