@@ -39,7 +39,7 @@ namespace ts.SelectionRange {
39
39
if ( isTemplateSpan ( parentNode ) && nextNode && isTemplateMiddleOrTemplateTail ( nextNode ) ) {
40
40
const start = node . getFullStart ( ) - "${" . length ;
41
41
const end = nextNode . getStart ( ) + "}" . length ;
42
- pushSelectionRange ( start , end , node . kind ) ;
42
+ pushSelectionRange ( start , end ) ;
43
43
}
44
44
45
45
// Blocks with braces, brackets, parens, or JSX tags on separate lines should be
@@ -54,7 +54,7 @@ namespace ts.SelectionRange {
54
54
if ( isNumber ( jsDocCommentStart ) ) {
55
55
pushSelectionRange ( jsDocCommentStart , end ) ;
56
56
}
57
- pushSelectionRange ( start , end , node . kind ) ;
57
+ pushSelectionRange ( start , end ) ;
58
58
59
59
// String literals should have a stop both inside and outside their quotes.
60
60
if ( isStringLiteral ( node ) || isTemplateLiteral ( node ) ) {
@@ -69,14 +69,11 @@ namespace ts.SelectionRange {
69
69
70
70
return selectionRange ;
71
71
72
- function pushSelectionRange ( start : number , end : number , syntaxKind ?: SyntaxKind ) : void {
72
+ function pushSelectionRange ( start : number , end : number ) : void {
73
73
// Skip ranges that are identical to the parent
74
74
const textSpan = createTextSpanFromBounds ( start , end ) ;
75
75
if ( ! selectionRange || ! textSpansEqual ( textSpan , selectionRange . textSpan ) ) {
76
76
selectionRange = { textSpan, ...selectionRange && { parent : selectionRange } } ;
77
- if ( syntaxKind ) {
78
- Object . defineProperty ( selectionRange , "__debugKind" , { value : formatSyntaxKind ( syntaxKind ) } ) ;
79
- }
80
77
}
81
78
}
82
79
}
0 commit comments