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
I've set "editor.formatOnType": true in settings.json. When I press return/enter after a line, that line should be formatted automatically.
Actual behaviour
Any given line won't format automatically when pylance is enabled. When I comment out "python.languageServer": "Pylance", in my settings.json, format on type works again.
The text was updated successfully, but these errors were encountered:
We don't implement this LSP method. The MPLS did, and the core extension has (old, hacky) logic for doing this when running jedi.
I'm not sure that we are going to reimplement this, as the core extension is planning on having this feature reworked in order to better support auto-formatting on enter (and thus requires us to not declare support for it): microsoft/vscode-python#8996
Environment data
Expected behaviour
I've set
"editor.formatOnType": true
insettings.json
. When I press return/enter after a line, that line should be formatted automatically.Actual behaviour
Any given line won't format automatically when pylance is enabled. When I comment out
"python.languageServer": "Pylance",
in mysettings.json
, format on type works again.The text was updated successfully, but these errors were encountered: