(value: string)
| 114 | "~/.ssh/id_dsa", |
| 115 | ]; |
| 116 | function expandLocalPath(value: string): string { |
| 117 | if (value === "~") { |
| 118 | return os.homedir(); |
| 119 | } |
| 120 | |
| 121 | if (value.startsWith("~/") || value.startsWith("~\\")) { |
| 122 | return path.join(os.homedir(), value.slice(2)); |
| 123 | } |
| 124 | |
| 125 | if (!path.isAbsolute(value)) { |
| 126 | return path.join(os.homedir(), value); |
| 127 | } |
| 128 | |
| 129 | return value; |
| 130 | } |
| 131 | |
| 132 | function makeConnectionKey(config: SSHConnectionConfig): string { |
| 133 | const parts = [ |