diff --git a/src/language/typescript/languageFeatures.ts b/src/language/typescript/languageFeatures.ts index ca11141736..8aaeb6ed08 100644 --- a/src/language/typescript/languageFeatures.ts +++ b/src/language/typescript/languageFeatures.ts @@ -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; }