Skip to content

Commit 6579cfa

Browse files
Merge pull request #79 from gjsjohnmurray/fix-78
fix #78 Add newly defined server to top of Recent folder
2 parents 89b872c + 0a158e4 commit 6579cfa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export function activate(context: vscode.ExtensionContext) {
5555
);
5656
context.subscriptions.push(
5757
vscode.commands.registerCommand(`${extensionId}.addServer`, async () => {
58-
await addServer();
58+
const name = await addServer();
59+
if (name) {
60+
await view.addToRecents(name);
61+
}
5962
})
6063
);
6164
context.subscriptions.push(

0 commit comments

Comments
 (0)