Getting Started¶
Follow these steps to set up the extension for local development and debugging.
Prerequisites¶
- Node.js 16+ and npm
- VS Code 1.85.0 or later
kubectlinstalled and on yourPATHkustomizeinstalled if you plan to use Kustomization features
Install and build¶
- Install dependencies:
bash npm install - Compile TypeScript:
bash npm run compile - (Optional) Watch for changes during development:
bash npm run watch
Run the tests¶
npm test
npm testrunsnpm run compileandnpm run lintautomatically via thepretestscript.
Debug in VS Code (recommended)¶
- Open the project in VS Code.
- Press F5 to launch the extension in a new Extension Development Host window.
- Open a Kubernetes manifest (for example
example-manifest.yaml) and use the gutter buttons.
Manual packaging (optional)¶
You can package the extension as a VSIX when you are ready to distribute:
npm install -g @vscode/vsce
vsce package
Install the resulting .vsix in VS Code via Extensions ➜ … ➜ Install from VSIX….