Issue
I would like to disable the underlining of errors like .text in this example
But it would be ok for me when eg. driver is wrong written like that
In my defaultSettings.json the parameter for this option is set:
"python.analysis.typeCheckingMode": "off",
And in my settings.json this parameter is not at all.
So why is Pylance still underlining the .text-command? I only want that it is underlining error like wrong written driver?
Solution
i think i found the solution - There are 2 settings.json in VSCode - one for "User" and one for "Workspace":
I only checked the settings.json for "User" and there was no entry for the parameter "python.analysis.typeCheckingMode"
But when i checked the "Workspace" settings.json i saw this entry
python.analysis.typeCheckingMode": "basic"
I changed this to "off" and now everything works again as wanted.
This are the different options for this parameter for the pylance-extension:
- off: No type checking analysis is conducted; unresolved imports/variables diagnostics are produced
- basic: Non-type checking-related rules (all rules in off) + basic type checking rules
- strict: All type checking rules at the highest severity of error (includes all rules in off and basic categories)
Answered By - Rapid1898
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.