mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Enforce node boundaries in places where it matters (#53192)
* Enfoce node boundries in places where it matters * Flip defualt emmet includeBoundries to true Explicitly set getNode's include boundries where needed * Remove defualt papameter * Add update image boundry tests * Add tests for bondries on some of the tag actions * Rest of tag tests
This commit is contained in:
@@ -51,7 +51,7 @@ export function nextItemStylesheet(startOffset: vscode.Position, endOffset: vsco
|
||||
}
|
||||
|
||||
export function prevItemStylesheet(startOffset: vscode.Position, endOffset: vscode.Position, editor: vscode.TextEditor, rootNode: CssNode): vscode.Selection | undefined {
|
||||
let currentNode = <CssNode>getNode(rootNode, startOffset);
|
||||
let currentNode = <CssNode>getNode(rootNode, startOffset, false);
|
||||
if (!currentNode) {
|
||||
currentNode = rootNode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user