Merge pull request #2687 from dbaeumer/feature/fix2507

fixes #2507 - bad formatting for formatonkey if convertTabsToSpaces === false
This commit is contained in:
Dirk Bäumer
2015-04-19 21:43:51 +02:00

View File

@@ -527,6 +527,9 @@ module ts.server {
if (lineText.charAt(i) == " ") {
indentPosition--;
}
else if (lineText.charAt(i) == "\t") {
indentPosition -= editorOptions.IndentSize;
}
else {
break;
}