in src/progressImpl.ts [113:141]
private showNativeProgress() {
if (this._isShown) {
return;
}
this._isShown = true;
window.withProgress<boolean>({
location: this._progressLocation,
title: this._jobName ? `[${this._jobName}](command:${STATUS_COMMAND})` : undefined,
cancellable: this._cancellable,
}, (progress, token) => {
progress.report({
message: this._message,
increment: this._increment,
});
this.observe(token);
this._progressEventEmitter.event(() => {
progress.report({
message: this._message,
increment: this._increment,
});
});
return new Promise((resolve) => {
this._cancelProgressEventEmitter.event(() => {
resolve(true);
});
});
});
}