mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
21 lines
819 B
Markdown
21 lines
819 B
Markdown
# Progress Sample
|
|
|
|
This is a sample extension that shows a running progress in the notification area with support for cancellation.
|
|
|
|
It is not intended as a product quality extension.
|
|
|
|
- Open the command palette
|
|
- Run "Show Progress"
|
|
- Observe the running task in the notification area
|
|
|
|

|
|
|
|
# How it works, what it shows?
|
|
|
|
- The extension uses the [`withProgress`](https://code.visualstudio.com/docs/extensionAPI/vscode-api#ProgressOptions) API to show the task in the notification area.
|
|
- Registers a command via `package.json` that will trigger the task
|
|
|
|
# How to run locally
|
|
|
|
* `npm run compile` to start the compiler in watch mode
|
|
* open this folder in VS Code and press `F5` |