Skip to content

Commit bdff091

Browse files
seperate out user when constructing workspaceUri
Co-authored-by: Justin M. Keyes <[email protected]>
1 parent 65d79dc commit bdff091

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/extensions/ssh.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ export async function startVscodeRemote(
126126
vscPath: string,
127127
user?: string
128128
): Promise<void> {
129-
const workspaceUri = `vscode-remote://ssh-remote+${`${user}@` ?? ''}${hostname}${targetDirectory}`
129+
const userAt = user ? `${user}@` : ''
130+
const workspaceUri = `vscode-remote://ssh-remote+${userAt}${hostname}${targetDirectory}`
130131

131132
const settings = new RemoteSshSettings()
132133
settings.ensureDefaultExtension(VSCODE_EXTENSION_ID.awstoolkit)

0 commit comments

Comments
 (0)