mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 05:50:11 +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);
|
||||
|
||||
if (!allDiagnostics || model.isDisposed()) {
|
||||
if (!allDiagnostics.length || model.isDisposed()) {
|
||||
// model was disposed in the meantime
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue