Skip to content

Commit

Permalink
fix: editor should not setModelMarkers when allDiagnostics is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanji.w committed Aug 31, 2023
1 parent c4fa782 commit b61ed73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/typescript/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b61ed73

Please sign in to comment.