未验证 提交 bd251d60 编写于 作者: I Isidor Nikolic 提交者: GitHub

Merge pull request #45946 from danielfrankcom/danielfrankcom/#21423

Fixes #21423 | Add ANSI colour tokens as children of existing tokens
......@@ -352,7 +352,13 @@ export class ReplExpressionsRenderer implements IRenderer {
}
currentToken = token;
tokensContainer.appendChild(token);
// get child until deepest nested node is found
let childPointer: Node = tokensContainer;
while (childPointer.hasChildNodes() && childPointer.firstChild.nodeName !== '#text') {
childPointer = childPointer.firstChild;
}
childPointer.appendChild(token);
i = index;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册