This commit is contained in:
wangwei 2025-12-20 08:34:55 +01:00 committed by GitHub
commit 268a1088a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
} }