mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
parent
93347ca210
commit
e228f2a2b5
|
@ -1059,11 +1059,13 @@ function getDignosticsKind(event: Proto.Event) {
|
|||
}
|
||||
|
||||
class ServerInitializingIndicator extends Disposable {
|
||||
private _task?: { project: string | undefined, resolve: () => void, reject: () => void };
|
||||
private _task?: { project: string | undefined, resolve: () => void, reject: (error: Error) => void };
|
||||
|
||||
public reset(): void {
|
||||
if (this._task) {
|
||||
this._task.reject();
|
||||
const error = new Error('Canceled');
|
||||
error.name = error.message;
|
||||
this._task.reject(error);
|
||||
this._task = undefined;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue