Skip to content

Commit 599a963

Browse files
authored
Add newline
1 parent 6a82b0a commit 599a963

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/rename.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ namespace ts.Rename {
4545

4646
const moduleSourceFile = find(moduleSymbol.declarations, isSourceFile);
4747
if (!moduleSourceFile) return undefined;
48-
const withoutIndex = endsWith(node.text, "/index") || endsWith(node.text, "/index.js") ? undefined : tryRemoveSuffix(removeFileExtension(moduleSourceFile.fileName), "/index"); const name = withoutIndex === undefined ? moduleSourceFile.fileName : withoutIndex;
48+
const withoutIndex = endsWith(node.text, "/index") || endsWith(node.text, "/index.js") ? undefined : tryRemoveSuffix(removeFileExtension(moduleSourceFile.fileName), "/index");
49+
const name = withoutIndex === undefined ? moduleSourceFile.fileName : withoutIndex;
4950
const kind = withoutIndex === undefined ? ScriptElementKind.moduleElement : ScriptElementKind.directory;
5051
const indexAfterLastSlash = node.text.lastIndexOf("/") + 1;
5152
// Span should only be the last component of the path. + 1 to account for the quote character.

0 commit comments

Comments
 (0)