Skip to content

Commit 79b600a

Browse files
committed
Clean up
1 parent 9163143 commit 79b600a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/services/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ namespace ts {
12591259
export function findPrecedingToken(position: number, sourceFile: SourceFileLike, startNode: Node, excludeJsdoc?: boolean): Node | undefined;
12601260
export function findPrecedingToken(position: number, sourceFile: SourceFile, startNode?: Node, excludeJsdoc?: boolean): Node | undefined;
12611261
export function findPrecedingToken(position: number, sourceFile: SourceFileLike, startNode?: Node, excludeJsdoc?: boolean): Node | undefined {
1262-
const result = find(startNode! || sourceFile);
1262+
const result = find((startNode || sourceFile) as Node);
12631263
Debug.assert(!(result && isWhiteSpaceOnlyJsxText(result)));
12641264
return result;
12651265

tests/cases/fourslash/server/formatOnOpenCurlyBraceIndentation.ts renamed to tests/cases/fourslash/server/formatOnTypeOpenCurlyWithBraceCompletion.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
goTo.marker("");
88
format.onType("", "{");
9-
// format.document();
109
verify.currentFileContentIs(
1110
`if (foo) {
1211
if (bar) { }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy