Skip to content

Commit

Permalink
fix #78 add new server to top of Recent folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gjsjohnmurray committed Apr 21, 2021
1 parent a667dd6 commit b4477fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b4477fa

Please sign in to comment.