Skip to content

Commit fa470aa

Browse files
committed
Merge branch 'hkobew/ec2/remoteConnect/sshKeysNew' of https://github.com/aws/aws-toolkit-vscode into hkobew/ec2/remoteConnect/sshKeysNew
2 parents fb43f3d + bdff091 commit fa470aa

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)