mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
fix percentage
This commit is contained in:
@ -22,11 +22,11 @@ export function activate(context: ExtensionContext) {
|
||||
}, 1000);
|
||||
|
||||
setTimeout(() => {
|
||||
progress.report({ percentage: 50, message: "I am long running! - still going even more..." });
|
||||
progress.report({ percentage: 40, message: "I am long running! - still going even more..." });
|
||||
}, 2000);
|
||||
|
||||
setTimeout(() => {
|
||||
progress.report({ percentage: 90, message: "I am long running! - almost there..." });
|
||||
progress.report({ percentage: 50, message: "I am long running! - almost there..." });
|
||||
}, 3000);
|
||||
|
||||
var p = new Promise(resolve => {
|
||||
@ -38,4 +38,4 @@ export function activate(context: ExtensionContext) {
|
||||
return p;
|
||||
});
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user