mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
do not indent tokens with errors
This commit is contained in:
@@ -646,7 +646,7 @@ module ts.formatting {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isTokenInRange) {
|
||||
if (isTokenInRange && !rangeContainsError(currentTokenInfo.token)) {
|
||||
insertIndentation(currentTokenInfo.token.pos, indentation.getEffectiveIndentation(tokenStart.line, currentTokenInfo.token.kind), lineAdded);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user