MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / writeSshConfiguration

Function writeSshConfiguration

Extension/src/SSH/sshHosts.ts:179–187  ·  view source on GitHub ↗
(configurationPath: string, configuration: Configuration)

Source from the content-addressed store, hash-verified

177}
178
179export async function writeSshConfiguration(configurationPath: string, configuration: Configuration): Promise<void> {
180 configurationPath = resolveHome(configurationPath);
181 try {
182 await vscode.workspace.fs.createDirectory(vscode.Uri.file(path.dirname(configurationPath)));
183 await fs.writeFile(configurationPath, configuration.toString());
184 } catch {
185 getSshChannel().appendLine(localize("failed.to.write.file", "Failed to write to file {0}.", configurationPath));
186 }
187}
188
189async function getSshConfigSource(configurationPath: string): Promise<string> {
190 configurationPath = resolveHome(configurationPath);

Callers 2

addSshTargetImplFunction · 0.90
removeSshTargetImplFunction · 0.90

Calls 4

resolveHomeFunction · 0.90
getSshChannelFunction · 0.90
toStringMethod · 0.80
appendLineMethod · 0.80

Tested by

no test coverage detected