mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Merge 42ccebaa1a into ec78a33c7b
This commit is contained in:
commit
268a1088a5
1 changed files with 1 additions and 1 deletions
|
|
@ -306,7 +306,7 @@ export class DiagnosticsAdapter extends Adapter {
|
||||||
|
|
||||||
const allDiagnostics = await Promise.all(promises);
|
const allDiagnostics = await Promise.all(promises);
|
||||||
|
|
||||||
if (!allDiagnostics || model.isDisposed()) {
|
if (!allDiagnostics.length || model.isDisposed()) {
|
||||||
// model was disposed in the meantime
|
// model was disposed in the meantime
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue