-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript formatter suddenly forgets about formatting rules #14599
Comments
I also saw this issue. I do following steps
I felt it was my git config but do not know if it is related to it |
Happens to me too on v1.7.1 on OSX. |
@jedfonner do you have any reproducible steps ? |
it happens to me too in javascript, I cant reproduce it, because it happens occasionally after paste some code and format it. I use format on save. v1.7.1 on Ubuntu |
So what I think happens is as follows:
However the formatter provide doesn't |
I have not seen this happening now. Hence marking this as verified. |
While developing on Code's source code, the following has happened to me twice: as I edit a file, the language service somehow forgets about the formatting rules and starts formatting everything with 4 spaces, instead of a tab.
@jrieken suggests that
This happened during regular coding, I did not mess with rebase/sync. It literally changed mid-edit. Reloading the TypeScript didn't fix it. Only reloading the window did.
The text was updated successfully, but these errors were encountered: