diff --git a/src/extension.ts b/src/extension.ts index 99a6bda..4126c67 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -55,7 +55,10 @@ export function activate(context: vscode.ExtensionContext) { ); context.subscriptions.push( vscode.commands.registerCommand(`${extensionId}.addServer`, async () => { - await addServer(); + const name = await addServer(); + if (name) { + await view.addToRecents(name); + } }) ); context.subscriptions.push(