How to write async code (promises?) with vscode api: withProgress
问题 I'm pretty sorry about the title, I've got no idea how to better describe my problem. I would like to implement the withProgress API of VSCode, to be able to show progressbar while my code is runnig/progressing. Documentation is here: https://code.visualstudio.com/api/extension-capabilities/common-capabilities#progress-api I've tried to implement it: vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, title: "I am long running!", }, (progress, token) => { return new