Develop a Hello PinK extension
examples/pink-extension in the repository is the smallest example that can be compiled and packed. It registers the standard VS Code command and shows how to read the PinK engine information.
Example structure
examples/pink-extension/
├── package.json
├── src/extension.ts
├── types/pink.d.ts
└── tsconfig.jsonDevelopment process
cd examples/pink-extension
pnpm install
pnpm compile
pnpm packageOpens the Example Directory in PinK and starts the Extension Host debug configuration, running "Hello PinK: Say Hello" and "Hello PinK: Show Engine Info". The former only uses standard vscode API; the latter only uses public pink.engine.getInfo().
The generated hello-pink.vsix is in the sample root directory, which can be validated by Installing From VSIX.
The smallest of the examples is pink.d.ts, which is used only to allow independent examples to complete the type check; the official extension should use the complete public type package issued by the PinK team.