mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Adopt native promises
This commit is contained in:
parent
b923f46ad6
commit
505232c7c8
5 changed files with 23 additions and 27 deletions
|
|
@ -7,7 +7,6 @@
|
|||
import { LanguageServiceDefaultsImpl } from './monaco.contribution';
|
||||
import { TypeScriptWorker } from './tsWorker';
|
||||
|
||||
import Promise = monaco.Promise;
|
||||
import IDisposable = monaco.IDisposable;
|
||||
import Uri = monaco.Uri;
|
||||
|
||||
|
|
@ -74,7 +73,7 @@ export class WorkerManager {
|
|||
}
|
||||
});
|
||||
|
||||
let p = this._worker.getProxy();
|
||||
let p = <Promise<TypeScriptWorker>>this._worker.getProxy();
|
||||
|
||||
if (this._defaults.getEagerModelSync()) {
|
||||
p = p.then(worker => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue