Skip to content

Commit 590ac4c

Browse files
committed
optional indentation on text changes
1 parent 8d5c8fb commit 590ac4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/textChanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ namespace ts.textChanges {
470470
const delta =
471471
change.options.delta !== undefined
472472
? change.options.delta
473-
: formatting.SmartIndenter.shouldIndentChildNode(change.node)
473+
: formatting.SmartIndenter.shouldIndentChildNode(change.node, formatOptions)
474474
? formatOptions.indentSize
475475
: 0;
476476

0 commit comments

Comments
 (0)