Emmet: Select next/previous item does not work with script tag. (#118842)

Co-authored-by: Vinay Kumar Sharma <vinakum@microsoft.com>
This commit is contained in:
vinku
2021-04-01 20:42:12 +05:30
committed by GitHub
parent 595a894b21
commit a56afa9033
2 changed files with 25 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ export function nextItemHTML(document: vscode.TextDocument, selectionStart: vsco
if (currentNode.type !== 'comment') {
// If cursor is in the tag name, select tag
if (currentNode.open &&
selectionEndOffset < currentNode.open.start + currentNode.name.length) {
selectionEndOffset <= currentNode.open.start + currentNode.name.length) {
return getSelectionFromNode(document, currentNode);
}