Refresh SSH hosts without restart
This commit is contained in:
@@ -204,6 +204,7 @@ export class SSHCommandController {
|
||||
if (compat) hostConfig.compat = true;
|
||||
|
||||
await addSSHHost(filePath, name, hostConfig);
|
||||
await this.ctx.session.refreshSshTool({ activateIfAvailable: true });
|
||||
|
||||
const scopeLabel = scope === "user" ? "user" : "project";
|
||||
const lines = [
|
||||
@@ -364,6 +365,7 @@ export class SSHCommandController {
|
||||
}
|
||||
|
||||
await removeSSHHost(filePath, name);
|
||||
await this.ctx.session.refreshSshTool();
|
||||
|
||||
this.#showMessage(
|
||||
["", theme.fg("success", `✓ Removed SSH host "${name}" from ${scope} config`), ""].join("\n"),
|
||||
|
||||
Reference in New Issue
Block a user