mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Adopt native promises
This commit is contained in:
parent
a450f6054c
commit
8a2b406930
5 changed files with 16 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue