Skip to content

Commit 66c11c5

Browse files
committedMay 2, 2018
Update completion order in test
1 parent 860f9f8 commit 66c11c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/compiler/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2986,7 +2986,7 @@ namespace ts {
29862986
export function changeAnyExtension(path: string, ext: string, extensions: string | ReadonlyArray<string>, ignoreCase: boolean): string;
29872987
export function changeAnyExtension(path: string, ext: string, extensions?: string | ReadonlyArray<string>, ignoreCase?: boolean) {
29882988
const pathext = extensions !== undefined && ignoreCase !== undefined ? getAnyExtensionFromPath(path, extensions, ignoreCase) : getAnyExtensionFromPath(path);
2989-
return pathext ? path.slice(0, path.length - pathext.length) + (ts.startsWith(ext, ".") ? ext : "." + ext) : path;
2989+
return pathext ? path.slice(0, path.length - pathext.length) + (startsWith(ext, ".") ? ext : "." + ext) : path;
29902990
}
29912991

29922992
/**

‎tests/cases/fourslash/completionForStringLiteralRelativeImport3.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ verify.completions(
3939
},
4040
{
4141
at: kinds.map(k => `${k}2`),
42-
are: ["e1", "f1", "f2", "tests", "folder"],
42+
are: ["e1", "f1", "f2", "folder", "tests"],
4343
isNewIdentifierLocation: true,
4444
});

0 commit comments

Comments
 (0)
Please sign in to comment.