Skip to content

Commit 617daa9

Browse files
author
Arthur Ozga
committed
Change fragment initialization
1 parent a12fe2e commit 617daa9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/completions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ namespace ts.Completions {
327327
* Given a path ending at a directory, gets the completions for the path, and filters for those entries containing the basename.
328328
*/
329329
function getCompletionEntriesForDirectoryFragment(fragment: string, scriptPath: string, extensions: string[], includeExtensions: boolean, span: TextSpan, exclude?: string, result: CompletionEntry[] = []): CompletionEntry[] {
330-
if (fragment === undefined) { fragment = "./"; }
330+
if (fragment === undefined) {
331+
fragment = "";
332+
}
331333

332334
fragment = normalizeSlashes(fragment);
333335

0 commit comments

Comments
 (0)