Skip to content

Commit f9437f4

Browse files
authored
Fix canceling login still asking to log in (#138)
1 parent aa04b4d commit f9437f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/remote.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ export class Remote {
112112
)
113113
if (!result) {
114114
await this.closeRemote()
115+
} else {
116+
await vscode.commands.executeCommand("coder.login", this.storage.getURL())
117+
await this.setup(remoteAuthority)
115118
}
116-
await vscode.commands.executeCommand("coder.login", this.storage.getURL())
117-
await this.setup(remoteAuthority)
118119
return
119120
}
120121
default:

0 commit comments

Comments
 (0)