mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Adopt native promises
This commit is contained in:
parent
f70f178c03
commit
da22aff470
5 changed files with 15 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue