From 45048bb7b2f8f1d795ed565316e18a47d0e58614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C3=BCstengecko?= <1579756+Wuestengecko@users.noreply.github.com> Date: Wed, 4 Aug 2021 23:53:10 +0200 Subject: [PATCH] Recognize the "I" pylint stdio message category This category includes messages such as `c-extension-no-member`, `use-symbolic-message-instead`, `useless-suppression` and others (only the first one mentioned is enabled by default). This commit fixes parsing of stdio linting results when such a message is emitted. --- pylsp/plugins/pylint_lint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylsp/plugins/pylint_lint.py b/pylsp/plugins/pylint_lint.py index d5ff3dbf..bdb65fe2 100644 --- a/pylsp/plugins/pylint_lint.py +++ b/pylsp/plugins/pylint_lint.py @@ -280,6 +280,7 @@ def _parse_pylint_stdio_result(document, stdout): 'C': lsp.DiagnosticSeverity.Information, 'E': lsp.DiagnosticSeverity.Error, 'F': lsp.DiagnosticSeverity.Error, + 'I': lsp.DiagnosticSeverity.Information, 'R': lsp.DiagnosticSeverity.Hint, 'W': lsp.DiagnosticSeverity.Warning, }