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: