Files
vscode-extension-samples/notifications-sample/README.md
2022-07-28 16:47:55 -07:00

1.6 KiB

Notifications Sample

This sample showcases a handful of basic configurations for notifications in VS Code:

  • Info Notification
  • Info Notification as Modal
  • Warning Notification
  • Warning Notification with Actions
  • Progress Notification

Demo

demo

VS Code API

vscode module

Contribution Points

Running the Sample

  • Run npm install in terminal to install dependencies
  • Press F5 or Run the Run Extension target in the Debug View. This will:
    • Start a task npm: watch to compile the code
    • Run the extension in a new VS Code window
  • Try running the commands to show the notifications:
- Notifications Sample: Show Info Notification
- Notifications Sample: Show Info Notification as Modal
- Notifications Sample: Show Warning Notification
- Notifications Sample: Show Warning Notification with Actions
- Notifications Sample: Show Progress Notification