Skip to content

Commit 87cf2e7

Browse files
committed
Update pylint msg-template to show human-friendly error symbols. Fixes microsoft#382
1 parent 9c3d9f7 commit 87cf2e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@
11701170
},
11711171
"python.linting.pylintArgs": {
11721172
"type": "array",
1173-
"description": "Arguments passed in. Each argument is a separate item in the array.",
1173+
"description": "Arguments passed in. Each argument is a separate item in the array. --msg-template is set by VSCode and cannot be overridden here.",
11741174
"default": [],
11751175
"items": {
11761176
"type": "string"

src/client/linters/pylint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class Linter extends baseLinter.BaseLinter {
1111
}
1212

1313
protected async runLinter(document: TextDocument, cancellation: CancellationToken): Promise<baseLinter.ILintMessage[]> {
14-
const messages = await this.run(['--msg-template=\'{line},{column},{category},{msg_id}:{msg}\'', '--reports=n', '--output-format=text', document.uri.fsPath], document, cancellation);
14+
const messages = await this.run(['--msg-template=\'{line},{column},{category},{msg_id}:{msg} ({symbol})\'', '--reports=n', '--output-format=text', document.uri.fsPath], document, cancellation);
1515
messages.forEach(msg => {
1616
msg.severity = this.parseMessagesSeverity(msg.type, this.pythonSettings.linting.pylintCategorySeverity);
1717
});

0 commit comments

Comments
 (0)