mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
This makes sure that if folks get a relatively recent `vscode.d.ts`. It also lets us safely bump up the target to es2024 so you can use all the latest lib additions
Calico Colors — Webview View API Sample
Demonstrates VS Code's webview view API. This includes:
- Contributing a webview based view to the explorer.
- Posting messages from an extension to a webview view
- Posting message from a webview to an extension
- Persisting state in the view.
- Contributing commands to the view title.
VS Code API
vscode module
Running the example
- Open this example in VS Code 1.49+
npm installnpm run watchornpm run compileF5to start debugging
In the explorer, expand the Calico Colors view.