mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 17:23:21 -05:00
Merge VS Code 1.31.1 (#4283)
This commit is contained in:
@@ -15,14 +15,14 @@ export interface IProgressService {
|
||||
/**
|
||||
* Show progress customized with the provided flags.
|
||||
*/
|
||||
show(infinite: boolean, delay?: number): IProgressRunner;
|
||||
show(infinite: true, delay?: number): IProgressRunner;
|
||||
show(total: number, delay?: number): IProgressRunner;
|
||||
|
||||
/**
|
||||
* Indicate progress for the duration of the provided promise. Progress will stop in
|
||||
* any case of promise completion, error or cancellation.
|
||||
*/
|
||||
showWhile(promise: Thenable<any>, delay?: number): Thenable<void>;
|
||||
showWhile(promise: Promise<any>, delay?: number): Promise<void>;
|
||||
}
|
||||
|
||||
export const enum ProgressLocation {
|
||||
@@ -52,7 +52,7 @@ export interface IProgressService2 {
|
||||
|
||||
_serviceBrand: any;
|
||||
|
||||
withProgress<P extends Thenable<R>, R=any>(options: IProgressOptions, task: (progress: IProgress<IProgressStep>) => P, onDidCancel?: () => void): P;
|
||||
withProgress<R=any>(options: IProgressOptions, task: (progress: IProgress<IProgressStep>) => Promise<R>, onDidCancel?: () => void): Promise<R>;
|
||||
}
|
||||
|
||||
export interface IProgressRunner {
|
||||
@@ -130,7 +130,7 @@ export class LongRunningOperation {
|
||||
this.currentOperationDisposables.push(
|
||||
toDisposable(() => clearTimeout(this.currentProgressTimeout)),
|
||||
toDisposable(() => newOperationToken.cancel()),
|
||||
toDisposable(() => this.currentProgressRunner ? this.currentProgressRunner.done() : void 0)
|
||||
toDisposable(() => this.currentProgressRunner ? this.currentProgressRunner.done() : undefined)
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user