Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Support diagnostics of type unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
spahnke committed Oct 7, 2019
1 parent c050127 commit 933c7fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ export class DiagnosticsAdapter extends Adapter {
endLineNumber,
endColumn,
message: flattenDiagnosticMessageText(diag.messageText, '\n'),
code: diag.code.toString()
code: diag.code.toString(),
tags: diag.reportsUnnecessary ? [monaco.MarkerTag.Unnecessary] : []
};
}

Expand Down

0 comments on commit 933c7fa

Please sign in to comment.