mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix smart selection bug with TemplateTails (#33108)
This commit is contained in:
1 parent
c5e6d95e93
commit
b85134b00d
3 files changed
+10
-1
No files matched your search
@@ -26,7 +26,7 @@ namespace ts.SmartSelectionRange {
|
||||
//
|
||||
// Dive in without pushing a selection range.
|
||||
if (isBlock(node)
|
||||
|| isTemplateSpan(node) || isTemplateHead(node)
|
||||
|| isTemplateSpan(node) || isTemplateHead(node) || isTemplateTail(node)
|
||||
|| prevNode && isTemplateHead(prevNode)
|
||||
|| isVariableDeclarationList(node) && isVariableStatement(parentNode)
|
||||
|| isSyntaxList(node) && isVariableDeclarationList(parentNode)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
`a ${b} /**/c`
|
||||
|
||||
a ${b} c
|
||||
`a ${b} c`
|
||||
@@ -0,0 +1,5 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
////`a ${b} /**/c`
|
||||
|
||||
verify.baselineSmartSelection();
|
||||
Reference in new issue
Block a user