From d0f109bc45a57f06d9cd0fd0b6af8d471064d0dc Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Fri, 3 May 2019 14:37:08 +0200 Subject: [PATCH] Update for windows --- src/vs/workbench/services/dialogs/browser/remoteFileDialog.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/services/dialogs/browser/remoteFileDialog.ts b/src/vs/workbench/services/dialogs/browser/remoteFileDialog.ts index 893bc78f376..662f6e5c232 100644 --- a/src/vs/workbench/services/dialogs/browser/remoteFileDialog.ts +++ b/src/vs/workbench/services/dialogs/browser/remoteFileDialog.ts @@ -341,7 +341,8 @@ export class RemoteFileDialog { } const currentDisplayUri = this.remoteUriFrom(currentPath); const relativePath = resources.relativePath(currentDisplayUri, directUri); - if (relativePath) { + const isSameRoot = (this.filePickBox.value.length > 1 && currentPath.length > 1) ? equalsIgnoreCase(this.filePickBox.value.substr(0, 2), currentPath.substr(0, 2)) : false; + if (relativePath && isSameRoot) { return resources.joinPath(this.currentFolder, relativePath); } else { return directUri;