Skip to content

Commit

Permalink
Sort aggregatedDiagnostic by severity
Browse files Browse the repository at this point in the history
  • Loading branch information
usernamehw committed Jul 11, 2019
1 parent d83596c commit c816bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Expand Up @@ -168,7 +168,7 @@ export function activate(context: vscode.ExtensionContext) {
}

for (const key in aggregatedDiagnostics) {
const aggregatedDiagnostic = aggregatedDiagnostics[key];
const aggregatedDiagnostic = aggregatedDiagnostics[key].sort((a, b) => a.severity - b.severity);

let addErrorLens = false;
switch (aggregatedDiagnostic[0].severity) {
Expand Down

0 comments on commit c816bf2

Please sign in to comment.