Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Rieken <johannes.rieken@gmail.com>2020-05-29 11:27:16 +0300
committerJohannes Rieken <johannes.rieken@gmail.com>2020-05-29 11:27:16 +0300
commit04fda84806715fdeb1c12e1a0d1f9ddcde3d5aa7 (patch)
tree1260eb33b0511f1d809425dfe4e0fcdcb601d4ca
parentec680dd778c600e9ab8c8e2d367df60e1015bfbd (diff)
use URI.joinPath for resources
-rw-r--r--src/vs/base/common/resources.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/vs/base/common/resources.ts b/src/vs/base/common/resources.ts
index d85243dd197..dd7ad4c5410 100644
--- a/src/vs/base/common/resources.ts
+++ b/src/vs/base/common/resources.ts
@@ -195,15 +195,7 @@ export class ExtUri implements IExtUri {
// --- path math
joinPath(resource: URI, ...pathFragment: string[]): URI {
- let joinedPath: string;
- if (resource.scheme === 'file') {
- joinedPath = URI.file(paths.join(originalFSPath(resource), ...pathFragment)).path;
- } else {
- joinedPath = paths.posix.join(resource.path || '/', ...pathFragment);
- }
- return resource.with({
- path: joinedPath
- });
+ return URI.joinPath(resource, ...pathFragment);
}
basenameOrAuthority(resource: URI): string {