提交 eb0ca262 编写于 作者: P Pine Wu

Fix #86844

上级 ac6f37e8
......@@ -54,6 +54,10 @@ export function activateMirrorCursor(
return;
}
if (event.textEditor.document?.languageId !== 'html' && event.textEditor.document?.languageId !== 'handlebars') {
return;
}
prevCursors = cursors;
cursors = event.selections;
......@@ -131,11 +135,10 @@ export function activateMirrorCursor(
workspace.applyEdit(cleanupEdit);
}
}
}
/**
* Both cursors are selections
*/
else {
} else {
/**
* Both cursors are selections
*/
const charBeforeAndAfterAnchorPositionsRoughlyEqual = isCharBeforeAndAfterPositionsRoughlyEqual(
event.textEditor.document,
event.selections[0].anchor,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册