Also skip TemplateHeads

This commit is contained in:
Andrew Branch
2019-04-11 12:47:10 -07:00
parent fd88e52252
commit 039487c84e
2 changed files with 14 additions and 3 deletions

View File

@@ -2136,7 +2136,7 @@ namespace ts.server {
// TemplateSpans, along with the SyntaxLists containing them,
// are a somewhat unintuitive grouping of things that should be
// considered independently. Dive in without pushing a selection range.
if (isBlock(node) || isTemplateSpan(node) || prevNode && isTemplateHead(prevNode)) {
if (isBlock(node) || isTemplateSpan(node) || isTemplateHead(node) || prevNode && isTemplateHead(prevNode)) {
parentNode = node;
break;
}