Skip to content

Commit f0f7d82

Browse files
committed
Remove debug info
1 parent 5479893 commit f0f7d82

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/services/selectionRange.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace ts.SelectionRange {
3939
if (isTemplateSpan(parentNode) && nextNode && isTemplateMiddleOrTemplateTail(nextNode)) {
4040
const start = node.getFullStart() - "${".length;
4141
const end = nextNode.getStart() + "}".length;
42-
pushSelectionRange(start, end, node.kind);
42+
pushSelectionRange(start, end);
4343
}
4444

4545
// Blocks with braces, brackets, parens, or JSX tags on separate lines should be
@@ -54,7 +54,7 @@ namespace ts.SelectionRange {
5454
if (isNumber(jsDocCommentStart)) {
5555
pushSelectionRange(jsDocCommentStart, end);
5656
}
57-
pushSelectionRange(start, end, node.kind);
57+
pushSelectionRange(start, end);
5858

5959
// String literals should have a stop both inside and outside their quotes.
6060
if (isStringLiteral(node) || isTemplateLiteral(node)) {
@@ -69,14 +69,11 @@ namespace ts.SelectionRange {
6969

7070
return selectionRange;
7171

72-
function pushSelectionRange(start: number, end: number, syntaxKind?: SyntaxKind): void {
72+
function pushSelectionRange(start: number, end: number): void {
7373
// Skip ranges that are identical to the parent
7474
const textSpan = createTextSpanFromBounds(start, end);
7575
if (!selectionRange || !textSpansEqual(textSpan, selectionRange.textSpan)) {
7676
selectionRange = { textSpan, ...selectionRange && { parent: selectionRange } };
77-
if (syntaxKind) {
78-
Object.defineProperty(selectionRange, "__debugKind", { value: formatSyntaxKind(syntaxKind) });
79-
}
8077
}
8178
}
8279
}

0 commit comments

Comments
 (0)