Skip to content

Commit

Permalink
Put empty check in the correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 authored and fi3ework committed Feb 6, 2022
1 parent b1df12f commit c22f1d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite-plugin-checker/src/checkers/vls/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ export async function prepareClientConnection(
return
}

publishDiagnostics.diagnostics = filterDiagnostics(publishDiagnostics.diagnostics, severity)

if (!publishDiagnostics.diagnostics.length) {
return
}
Expand Down

0 comments on commit c22f1d4

Please sign in to comment.