We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b1a3f8 commit d35d5d0Copy full SHA for d35d5d0
src/services/pathCompletions.ts
@@ -462,7 +462,7 @@ namespace ts.Completions.PathCompletions {
462
}
463
464
function normalizeAndPreserveTrailingSlash(path: string) {
465
- if (path === "./") {
+ if (normalizeSlashes(path) === "./") {
466
// normalizePath turns "./" into "". "" + "/" would then be a rooted path instead of a relative one, so avoid this particular case.
467
// There is no problem for adding "/" to a non-empty string -- it's only a problem at the beginning.
468
return "";
0 commit comments