We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
~
remote.SSH.configFile
1 parent 8a47fc1 commit e453183Copy full SHA for e453183
src/remote.ts
@@ -444,6 +444,12 @@ export class Remote {
444
if (!sshConfigFile) {
445
sshConfigFile = path.join(os.homedir(), ".ssh", "config")
446
}
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
+
453
const sshConfig = new SSHConfig(sshConfigFile)
454
await sshConfig.load()
455
0 commit comments