Adopt native promises

This commit is contained in:
Alex Dima 2019-01-09 16:13:29 +01:00
parent a450f6054c
commit 8a2b406930
5 changed files with 16 additions and 24 deletions

View file

@ -7,7 +7,6 @@
import { LanguageServiceDefaultsImpl } from './monaco.contribution';
import { CSSWorker } from './cssWorker';
import Promise = monaco.Promise;
import IDisposable = monaco.IDisposable;
import Uri = monaco.Uri;
@ -73,7 +72,7 @@ export class WorkerManager {
}
});
this._client = this._worker.getProxy();
this._client = <Promise<CSSWorker>><any>this._worker.getProxy();
}
return this._client;