Skip to content

Files

Latest commit

Mar 3, 2025
9fb82e1 · Mar 3, 2025

History

History

webview-view-sample

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.