vscode-ext icon indicating copy to clipboard operation
vscode-ext copied to clipboard

Consider leveraging the withProgress API for long running processes (builds, deploys, etc)

Open kevinbluer opened this issue 2 years ago • 1 comments

Example of this in use at the following: https://github.com/microsoft/vscode-extension-samples/tree/main/progress-sample

kevinbluer avatar Mar 09 '22 23:03 kevinbluer

Hi @kevinbluer, thanks for sending this. Currently the extension uses the withProgress API, but it does not report any actual progress. However, progress is shown in the Output Channel (when sticky) which becomes visible when triggering a command, e.g.,

https://user-images.githubusercontent.com/4592980/183064536-01c89930-dacc-488d-ad47-6469d6ba0e5c.mp4

Moreover, to use this API with progress we need a way to get the percentage completed. I'm not sure how we can get this from the process's stdout.

acuarica avatar Aug 05 '22 11:08 acuarica