Feedback from twitter here: https://twitter.com/amuellerml/status/1060895092230291457 ## Actual behavior ``` a = 1 + \ <--- indent is here ``` ## Expected behavior ``` a = 1 + \ <--- indent is here ```
Activity
amueller commentedon Nov 10, 2018
DonJayamanne commentedon Nov 11, 2018
amueller commentedon Nov 11, 2018
cbrnr commentedon Nov 12, 2018
#481 is certainly related because it also concerns proper PEP8-style indentation.
DonJayamanne commentedon Nov 12, 2018
This issue was moved to microsoft/python-language-server#385
jakebailey commentedon Nov 12, 2018
I'm pretty sure this isn't a language server problem. The extension tells the editor what to do on enter here:
https://github.com/Microsoft/vscode-python/blob/d0c239fcc78fee9a05713ced15b08e6806affc24/src/client/extension.ts#L121-L140
This is distinct from
textDocument/onTypeFormatting.23 remaining items
ericsnowcurrently commentedon Jun 11, 2019
Prescribed Solution:
beforeTextsetting to use the below regex:There may be a more correct regex to use:
/^(?!\s+\\)[^#\n]+\\$/See #5821 (comment).
karrtikr commentedon Jun 26, 2019
Closing as fix for #4241 will cover it.