Merge pull request #3057 from continuedev/dallin/signout-context
Update vscode context on signout
This commit is contained in:
commit
1237463b71
2 changed files with 10 additions and 5 deletions
|
|
@ -508,6 +508,11 @@ export class VsCodeMessenger {
|
|||
await Promise.all(
|
||||
sessions.map((session) => workOsAuthProvider.removeSession(session.id)),
|
||||
);
|
||||
vscode.commands.executeCommand(
|
||||
"setContext",
|
||||
"continue.isSignedInToControlPlane",
|
||||
false,
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -134,12 +134,12 @@ function AccountDialog() {
|
|||
? "Signed in"
|
||||
: `Signed in as ${session.account.label}`}
|
||||
</p>
|
||||
<NewSessionButton className="border border-solid" onClick={logout}>
|
||||
Sign out
|
||||
</NewSessionButton>
|
||||
<div className="mt-3 flex flex-row">
|
||||
<div className="mt-3 flex flex-row justify-between gap-2">
|
||||
<SecondaryButton className="max-w-20 flex-1" onClick={logout}>
|
||||
Sign out
|
||||
</SecondaryButton>
|
||||
<Button
|
||||
className="basis-1/4"
|
||||
className="max-w-20 flex-1"
|
||||
onClick={() => {
|
||||
dispatch(setDialogMessage(undefined));
|
||||
dispatch(setShowDialog(false));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue