mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Fixes #27623
This commit is contained in:
parent
1d93668c0e
commit
0977276c2b
|
@ -29,7 +29,7 @@ export function matchTag() {
|
|||
}
|
||||
|
||||
function getUpdatedSelections(editor: vscode.TextEditor, offset: number, rootNode: Node): vscode.Selection {
|
||||
let currentNode = getNode(rootNode, offset);
|
||||
let currentNode = getNode(rootNode, offset, true);
|
||||
|
||||
// If no closing tag or cursor is between open and close tag, then no-op
|
||||
if (!currentNode.close || (currentNode.open.end < offset && currentNode.close.start > offset)) {
|
||||
|
|
Loading…
Reference in a new issue