Skip to content

Commit d3b57e3

Browse files
author
Benjamin Pasero
committed
Revert "fix bad usage of paths lib"
This reverts commit 97bfb45.
1 parent 66bd1bc commit d3b57e3

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/vs/base/common/resources.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,10 @@ export function isEqual(first: URI | undefined, second: URI | undefined, ignoreC
6464
}
6565

6666
export function basename(resource: URI): string {
67-
if (resource.scheme === Schemas.file) {
68-
return paths.basename(resource.path);
69-
}
70-
7167
return paths.posix.basename(resource.path);
7268
}
7369

7470
export function extname(resource: URI): string {
75-
if (resource.scheme === Schemas.file) {
76-
return paths.extname(resource.path);
77-
}
78-
7971
return paths.posix.extname(resource.path);
8072
}
8173

0 commit comments

Comments
 (0)