mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
fixes #2507 - bad formatting for formatonkey if convertTabsToSpaces === false
This commit is contained in:
@@ -495,6 +495,9 @@ module ts.server {
|
||||
if (lineText.charAt(i) == " ") {
|
||||
indentPosition--;
|
||||
}
|
||||
else if (lineText.charAt(i) == "\t") {
|
||||
indentPosition -= editorOptions.IndentSize;
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user