mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
slight condition change for getDelta
This commit is contained in:
@@ -480,7 +480,7 @@ namespace ts.formatting {
|
||||
}
|
||||
},
|
||||
getIndentation: () => indentation,
|
||||
getDelta: (child) => (!delta || SmartIndenter.shouldInheritParentIndentation(node, child)) ? 0 : delta,
|
||||
getDelta: (child) => (delta && SmartIndenter.shouldInheritParentIndentation(node, child)) ? 0 : delta,
|
||||
recomputeIndentation: lineAdded => {
|
||||
if (node.parent && SmartIndenter.shouldIndentChildNode(node.parent, node)) {
|
||||
if (lineAdded) {
|
||||
|
||||
Reference in New Issue
Block a user