Skip to content

Commit 8665a3e

Browse files
authored
chat - always refresh tokens when setup ran (microsoft#255100)
1 parent 5d2088c commit 8665a3e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatSetup.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,11 @@ class ChatSetupController extends Disposable {
13441344
this.telemetryService.publicLog2<InstallChatEvent, InstallChatClassification>('commandCenter.chatInstall', { installResult: wasRunning && !signUpResult ? 'alreadyInstalled' : 'installed', installDuration: watch.elapsed(), signUpErrorCode: undefined, provider });
13451345
}
13461346

1347-
if (wasRunning && signUpResult === true) {
1347+
if (wasRunning) {
1348+
// We always trigger refresh of tokens to help the user
1349+
// get out of authentication issues that can happen when
1350+
// for example the sign-up ran after the extension tried
1351+
// to use the authentication information to mint a token
13481352
refreshTokens(this.commandService);
13491353
}
13501354

0 commit comments

Comments
 (0)