Skip to content

Commit d7e227b

Browse files
committed
Show revert GitpodHost dialog properly
1 parent fa52a80 commit d7e227b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/remoteSession.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export class RemoteSession extends Disposable {
4545

4646
this._register(this.sessionService.onDidChangeSession(() => {
4747
if (!this.sessionService.isSignedIn()) {
48-
this.showSignInDialog();
48+
if (new URL(this.hostService.gitpodHost).host !== new URL(connectionInfo.gitpodHost).host) {
49+
this.showRevertGitpodHostDialog();
50+
} else {
51+
this.showSignInDialog();
52+
}
4953
} else if (new URL(this.hostService.gitpodHost).host !== new URL(connectionInfo.gitpodHost).host) {
5054
this.showRevertGitpodHostDialog();
5155
}

0 commit comments

Comments
 (0)