editor.formatOnType breaks indentation
This is for version 0.10.10, when writing JavaScript.
It appears that setting "editor.formatOnType" to true breaks indentation when you add a newline. What I mean by this is that if you are at the end of a line, and hit "enter", the keyboard cursor will briefly appear at the right indentation level on the new line, but snap back to the line start after about 100 milliseconds.
Setting formatOnType to false fixes this behavior; but, of course, VS Code will no longer format on type. Perhaps whatever code formatter is being used is configured to remove all indentation for empty lines.
The only other custom setting that I have is setting "insertSpaces" to false.
I have the same issue
Same issue, really annoying.
@dbaeumer I will take a look to see if I can "tweak" the format edit if it wants to remove whitespace around the cursor
@alexandrudima this is a problem with the tsserver and IMO we should push the TS team to fix this. The corresponding issue in TS land is: https://github.com/Microsoft/TypeScript/issues/6700
Same issue :+1:
@dbaeumer Is this fixed on the TS side on master?
I still get it in some cases such as pressing Enter twice:

@alexandrudima it should be fixed and @jrieken and I tested it (I updated the tsserver to 1.8.9 today). But it looks like not all cases are fixed. I opt for opening a issue against TS.
What's the status regarding that today ?
It's a little big fixed... The true issue is in TypeScript-land and we have refrained from massaging their text edits. @alexandrudima tracks the issue on the TypeScript-side, tho unsure what the status is?
I have to say the formatOnType function is always broken. In most vscode versions , it doesn't work properly. Everytime vscode updated, I turned it on, then some minutes I had to turn it off. I suggest you turn on this option by default like visual studio,and you may pay more attention on his.
The fix for Microsoft/TypeScript#6700 is in the nightly TypeScript build.
Until VS code adopts a new version you can use a newer version of TypeScript by:
Install the new typescript version globally:
npm install -g typescript@next- in the user settings define "typescript.tsdk": "path to your folder/node_modules/typescript/lib"
Install the new typescript version locally into your workspace:
npm install -g typescript@next- code will pick it up from there.
The version of the install TypeScript version is shown in the status bar at the right.
I still have the problem that @alexandrudima described. Using Version 1.1.0-insider (1.1.0-insider) and [email protected].

That does look like the problem wasn't fixed yet. Thanks for the repo, I'll keep looking.
Clearing the milestone, since it is an upstream fix that is planned by another team.
@dbaeumer added a workaround for this on our side in PR #6911