-
Notifications
You must be signed in to change notification settings - Fork 133
Indent when doing line breaks #385
Comments
Not a dup |
From @amueller on November 11, 2018 1:1 Hmm I guess this is a separate case that's not listed? |
Are you sure this is a language server issue? IIRC the extension is the one in control of indent on enter via those hardcoded regexes in |
Doesn't LS handle this via format on type? |
The only sort of indention that the LS does is the It could technically be done inside of the onTypeFormat handler, but it would need to be reimplemented in the extension too (and then wouldn't be available to most people, because most people don't enable on-type). |
Sorry, I take that back, the |
Ok, I'm confused, is this something that the language server can handle or not? |
It could handle it, but it shouldn't. All of the rules on when to add an indent on an enter are produced by those Adding a one-off exception could be done, but would then need to be reimplemented in the extension's line formatter too. And IMO, this sort of auto-indent is not the same thing as on-type formatting. |
btw I think the cases in microsoft/vscode-python#481 are more important since using |
From @qubitron on November 9, 2018 20:23
Feedback from twitter here: https://twitter.com/amuellerml/status/1060895092230291457
Actual behavior
Expected behavior
Copied from original issue: microsoft/vscode-python#3284
The text was updated successfully, but these errors were encountered: