Install dependencies with:
npm install
Start the compiler watch task:
node --run watch
- Inside VS Code press F5 to open a new window with the extension loaded.
- Set breakpoints in your code to debug the extension.
- Find output from the extension in the debug console.
- You can relaunch the extension from the debug toolbar after changing code.
- You can also reload (Ctrl + R or Cmd + R on Mac) the Extension Development Host VS Code window to load your changes.
You can see the full set of the VS code API when you open the file node_modules/@types/vscode/index.d.ts
.
The following command runs linting, type and format checking:
node --run check
Format all code with:
node --run format
Bump the package version and generate a changelog:
npm version [major|minor|patch]
See npm version docs for all available arguments.
Publish the new version with vsce:
npx @vscode/vsce@latest publish