提交 804096b8 编写于 作者: J Johannes Rieken

fix #16101

上级 fc8ebdea
......@@ -409,9 +409,11 @@ export function find(node: Node, position: IPosition): Node {
var result: Node;
if (node instanceof NodeList) {
if (node.hasChildren) {
for (var i = 0, len = node.children.length; i < len && !result; i++) {
result = find(node.children[i], position);
}
}
} else if (node instanceof Block) {
result = find(node.open, position) || find(node.elements, position) || find(node.close, position);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册