Files
vscode-extension-samples/notifications-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
..
2022-07-28 14:48:13 -07:00
2022-12-19 22:31:07 +08:00
2022-07-28 14:48:13 -07:00
2022-07-28 15:27:06 -07:00
2024-10-26 17:44:03 -07:00
2022-07-29 10:12:29 -07:00
2022-07-28 14:48:13 -07:00

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

Read the Notifications UX Guidelines to learn how to effectively use notifications in an extension.

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