mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Support diagnostics of type unnecessary
This commit is contained in:
parent
c050127710
commit
933c7faef2
1 changed files with 2 additions and 1 deletions
|
|
@ -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] : []
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue