mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Merge from vscode a234f13c45b40a0929777cb440ee011b7549eed2 (#8911)
* Merge from vscode a234f13c45b40a0929777cb440ee011b7549eed2 * update distro * fix layering * update distro * fix tests
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { IProgressIndicator, IProgressRunner } from 'vs/platform/progress/common/progress';
|
||||
|
||||
export class SimpleProgressIndicator implements IProgressIndicator {
|
||||
show(infinite: true, delay?: number): IProgressRunner;
|
||||
show(total: number, delay?: number): IProgressRunner;
|
||||
show(total: any, delay?: any) {
|
||||
return {
|
||||
total: (total: number) => {
|
||||
},
|
||||
|
||||
worked: (worked: number) => {
|
||||
},
|
||||
|
||||
done: () => {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
async showWhile(promise: Promise<any>, delay?: number): Promise<void> {
|
||||
try {
|
||||
await promise;
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
_serviceBrand: undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user