From 31647a594e22d27f44cff4607ae6d6432418653b Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 20 Sep 2023 01:43:31 -0800 Subject: [PATCH] Fix canceling login still asking to log in --- src/remote.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/remote.ts b/src/remote.ts index 0e04c5b5..c9f0b53f 100644 --- a/src/remote.ts +++ b/src/remote.ts @@ -112,9 +112,10 @@ export class Remote { ) if (!result) { await this.closeRemote() + } else { + await vscode.commands.executeCommand("coder.login", this.storage.getURL()) + await this.setup(remoteAuthority) } - await vscode.commands.executeCommand("coder.login", this.storage.getURL()) - await this.setup(remoteAuthority) return } default: