Skip to content

Commit dbe3652

Browse files
naflymimbrettcannon
authored andcommitted
Remove the linting error code placed in beginning of the message #2815 (#2946)
1 parent c7e2a83 commit dbe3652

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

news/3 Code Health/2815.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Move the linting error code out of the linting message and let [VS Code manage it in the Problems panel](https://code.visualstudio.com/updates/v1_28#_problems-panel)
2+
(Thanks [Nafly Mohammed](https://github.com/naflymim)).

src/client/linters/lintingEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class LintingEngine implements ILintingEngine {
168168
const range = new vscode.Range(position, position);
169169

170170
const severity = lintSeverityToVSSeverity.get(message.severity!)!;
171-
const diagnostic = new vscode.Diagnostic(range, `${message.code}:${message.message}`, severity);
171+
const diagnostic = new vscode.Diagnostic(range, message.message, severity);
172172
diagnostic.code = message.code;
173173
diagnostic.source = message.provider;
174174
return diagnostic;

0 commit comments

Comments
 (0)