Adopt native promises

This commit is contained in:
Alex Dima 2019-01-09 16:24:31 +01:00
parent f70f178c03
commit da22aff470
5 changed files with 15 additions and 19 deletions

View file

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