Files
vscode-extension-samples/webview-view-sample
Matt Bierner 73e249b3c1 Migrate all samples to eslint 9
Switches all samples to use eslint 9 with flat configs. I've tried to migrate existing settings as much as possible. However our eslint configs were also inconsistent so I've tried to align these too
2024-10-26 17:44:03 -07:00
..
2020-08-24 17:39:48 -07:00
2024-10-26 17:44:03 -07:00
2024-10-26 17:44:03 -07:00
2022-02-28 13:45:21 -08:00

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 install
  • npm run watch or npm run compile
  • F5 to start debugging

In the explorer, expand the Calico Colors view.