You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per https://code.visualstudio.com/docs/python/settings-reference I expect to be able to disable adding brackets when auto-completing an exception class name or function name. That page documents the python.autoComplete.addBrackets setting for this purpose, but it does not show up in the standard settings editor and when I manually add it to the settings json file VSCode warns "Unknown Configuration Setting" and the setting is grayed out and has no effect.
Actual behaviour
I see no way to disable adding brackets when auto-completion an exception class name or function name. This is especially annoying for exception class names because in catch clauses parenthesis are forbidden.
Steps to reproduce
Run VSCode 1.63.1 configured to use the Jedi language server (I have no idea if Jedi is relevant and this problem also appeared in the previous version of VSCode, and possibly earlier).
Edit a Python file
Type enough letters of Exception for autocomplete to suggest the word. Accept the automatic completion.
VSCode adds closing parenthesis, which I don't want.
The page https://code.visualstudio.com/docs/python/settings-reference says that python.autoComplete.addBrackets is a setting and it defaults to false. That sounds perfect, though it is worrisome that it defaults to false and I don't remember ever setting it to true.
Bring up the standard settings editor and notice that no such setting exists.
Edit the settings json file and add the setting: "python.autoComplete.addBrackets": false,
Notice that VSCode complains "Unknown Configuration Setting" in the bar along the bottom, and the setting is grayed out and has no effect.
So two issues:
How do I disable this unwanted cleverness now? Apparently the setting you document for this purpose is gone and the default for the replacement is to add the unwanted parenthesis.
Your Python settings documentation page is outdated. Please update it.
Logs
Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
VS Code version
1.63.1
Extension version
v2021.12.1559732655
OS type
macOS
OS version
11.6.1
Python distribution
Anaconda
Python version
3.8.8
Language server
Jedi
Expected behaviour
As per https://code.visualstudio.com/docs/python/settings-reference I expect to be able to disable adding brackets when auto-completing an exception class name or function name. That page documents the python.autoComplete.addBrackets setting for this purpose, but it does not show up in the standard settings editor and when I manually add it to the settings json file VSCode warns "Unknown Configuration Setting" and the setting is grayed out and has no effect.
Actual behaviour
I see no way to disable adding brackets when auto-completion an exception class name or function name. This is especially annoying for exception class names because in
catch
clauses parenthesis are forbidden.Steps to reproduce
VSCode adds closing parenthesis, which I don't want.
Notice that VSCode complains "Unknown Configuration Setting" in the bar along the bottom, and the setting is grayed out and has no effect.
So two issues:
Logs
Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
Code of Conduct
The text was updated successfully, but these errors were encountered: