diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py index 199f9ad..3d36d42 100644 --- a/bundled/tool/lsp_server.py +++ b/bundled/tool/lsp_server.py @@ -157,7 +157,8 @@ def _parse_output_using_regex( continue # skip output from other documents - # (causes --follow-imports=normal to behave like silent). + # (mypy will follow imports, so may include errors found in other + # documents; this is fine/correct, we just need to account for it). if data["filepath"] != document.path: continue diff --git a/package.json b/package.json index 600c981..97df548 100644 --- a/package.json +++ b/package.json @@ -66,9 +66,7 @@ "configuration": { "properties": { "mypy-type-checker.args": { - "default": [ - "--follow-imports=normal" - ], + "default": [], "markdownDescription": "%settings.args.description%", "items": { "type": "string"