Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite453183

Browse files
authored
fix: allow~ to work when resolvingremote.SSH.configFile on Windows (#68)
1 parent8a47fc1 commite453183

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/remote.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,12 @@ export class Remote {
444444
if(!sshConfigFile){
445445
sshConfigFile=path.join(os.homedir(),".ssh","config")
446446
}
447+
// VS Code Remote resolves ~ to the home directory.
448+
// This is required for the tilde to work on Windows.
449+
if(sshConfigFile.startsWith("~")){
450+
sshConfigFile=path.join(os.homedir(),sshConfigFile.slice(1))
451+
}
452+
447453
constsshConfig=newSSHConfig(sshConfigFile)
448454
awaitsshConfig.load()
449455

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp