fixes #2507 - bad formatting for formatonkey if convertTabsToSpaces === false

This commit is contained in:
Dirk Baeumer
2015-03-26 15:33:15 +01:00
parent 631a9d80be
commit c123208784

View File

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