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

Commit

Permalink
Merge pull request #47 from spahnke/mark-unnecessary
Browse files Browse the repository at this point in the history
Adopt monaco.MarkerTag API
  • Loading branch information
alexdima committed Dec 17, 2019
2 parents e91b33e + 933c7fa commit 92c4b95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/languageFeatures.ts
Expand Up @@ -201,7 +201,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 92c4b95

Please sign in to comment.