Disable Specific Pylance Linting Messages In Vs Code Settings.json Like With "python.linting.pylintargs"
When Pylance was introduced, I filed a question on how to generally customize Pylance linting. Here, one can find a few ways to customize Pylance, but there is nothing about how to
Solution 1:
- Get error-message value you want to modify/disable here (in my case "reportMissingImports")
- Modify
settings.json
with"reportMissingImports": "none"
(see diagnosis reporting levels here)
The entire code to be inserted into the settings.json
is:
"python.analysis.diagnosticSeverityOverrides":{"reportMissingImports":"none"}
As an aside, if you want to be at least informed about unused imports, you can insert:
"python.analysis.diagnosticSeverityOverrides":{"reportUnusedImport":"information","reportMissingImports":"none"}
Post a Comment for "Disable Specific Pylance Linting Messages In Vs Code Settings.json Like With "python.linting.pylintargs""