Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnwargo/vscode-progress-demo
A Visual Studio Code extension that demonstrates how to cancel an progress bar from an external async process
https://github.com/johnwargo/vscode-progress-demo
Last synced: about 1 month ago
JSON representation
A Visual Studio Code extension that demonstrates how to cancel an progress bar from an external async process
- Host: GitHub
- URL: https://github.com/johnwargo/vscode-progress-demo
- Owner: johnwargo
- License: mit
- Created: 2023-11-26T20:41:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-26T21:25:05.000Z (about 1 year ago)
- Last Synced: 2023-12-08T21:26:48.588Z (about 1 year ago)
- Language: TypeScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license
Awesome Lists containing this project
README
# Visual Studio Extension Progress Demo
I'm working on my first Visual Studio Code extension and as part of the extension's work, it calls a long-running external API that could take 30 seconds or more to complete. I started looking for way to display a progress dialog and discovered the [vscode.window.withProgress](https://code.visualstudio.com/api/references/vscode-api#StatusBarItem).
As I looked through the different examples I found out there, they all showed how the code that displays and manages the progress item decides when to close the window. For my project, I had a separate process deciding when to close the progress window and this is a sample Visual Studio Code extension that shows how to do it.
You can read more about the extension at [Visual Studio Code Progress Cancelled by Async Task](https://johnwargo.com/posts/2023/vscode-extension-progress/).