mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
fix(workerManager.js) : Added a check for the existence of the worker before calling withSyncedResources
This commit is contained in:
parent
cfdc74341d
commit
ad78615d47
1 changed files with 3 additions and 1 deletions
|
|
@ -80,7 +80,9 @@ export class WorkerManager {
|
|||
_client = client;
|
||||
})
|
||||
.then((_) => {
|
||||
if (this._worker) {
|
||||
return this._worker.withSyncedResources(resources);
|
||||
}
|
||||
})
|
||||
.then((_) => _client);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue