Usage Examples
This template ships with two commands you can use for smoke testing and as examples for your own implementation.
Say Hello
Command ID:
extension-template.sayHelloBehavior: reads the optional
template.greetingPrefixsetting and shows a greeting in VS Code.How to replace: update the command in
src/extension.tsand adjust the configuration schema inpackage.json.
Welcome Panel
Command ID:
extension-template.showWelcomePanelBehavior: opens a Webview with simple instructions and a placeholder data payload.
How to replace: edit
src/welcomePanel.tsand the assets undermedia/to render your UI. Usewebview.postMessageto exchange data with the extension host.
Customizing for your project
Rename the commands and activation events in
package.json.Add any additional configuration fields your extension needs.
Update the README and docs to reflect your features.
Expand the tests in
tests/to cover new behaviors.