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
However, tide-format leaves it as in the first snippet.
It is possible to do this as a workaround:
const x = `abc
\ def`;
The escaped space is treated as a space, and typescript-mode won't try to remove the spaces, but yuck!
I'm thinking of modifying the indentation code so that typescript-mode leaves the leading space in lines of multiline strings like the one above intact. I'm wondering though whether this should be configurable. If I just "fix" it, that's going to change the previous behavior that some people may rely on. (That behavior appears flat out bad to me, so I don't know why anyone would rely on that behavior, but maybe I'm missing something.)
The text was updated successfully, but these errors were encountered:
The mode currently operates so that
Will be indented to:
However,
tide-format
leaves it as in the first snippet.It is possible to do this as a workaround:
The escaped space is treated as a space, and
typescript-mode
won't try to remove the spaces, but yuck!I'm thinking of modifying the indentation code so that
typescript-mode
leaves the leading space in lines of multiline strings like the one above intact. I'm wondering though whether this should be configurable. If I just "fix" it, that's going to change the previous behavior that some people may rely on. (That behavior appears flat out bad to me, so I don't know why anyone would rely on that behavior, but maybe I'm missing something.)The text was updated successfully, but these errors were encountered: