diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 916003d86..4c137be21 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -98,7 +98,7 @@ "@aws-sdk/client-bedrock-runtime": "^3.620.1", "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", - "@continuedev/config-types": "^1.0.10", + "@continuedev/config-types": "^1.0.13", "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", diff --git a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts index f51d5144d..c9259553f 100644 --- a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts +++ b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts @@ -249,6 +249,13 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { }; } + private _formatProfileLabel( + firstName: string | null, + lastName: string | null, + ) { + return ((firstName ?? "") + " " + (lastName ?? "")).trim(); + } + /** * Create a new auth session * @param scopes @@ -275,7 +282,7 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { expiresInMs: this.getExpirationTimeMs(access_token), loginNeeded: false, account: { - label: user.first_name + " " + user.last_name, + label: this._formatProfileLabel(user.first_name, user.last_name), id: user.email, }, scopes: [], diff --git a/gui/package-lock.json b/gui/package-lock.json index e86bfa61f..25a992592 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -99,7 +99,7 @@ "@aws-sdk/client-bedrock-runtime": "^3.620.1", "@aws-sdk/client-sagemaker-runtime": "^3.621.0", "@aws-sdk/credential-providers": "^3.620.1", - "@continuedev/config-types": "^1.0.10", + "@continuedev/config-types": "^1.0.13", "@continuedev/llm-info": "^1.0.2", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.0.2", diff --git a/gui/src/components/ProfileSwitcher.tsx b/gui/src/components/ProfileSwitcher.tsx index 89034faa2..f4bfde1cc 100644 --- a/gui/src/components/ProfileSwitcher.tsx +++ b/gui/src/components/ProfileSwitcher.tsx @@ -116,7 +116,7 @@ function ListBoxOption({ setHovered(false); }} > -
+
{option.title}
@@ -249,10 +249,14 @@ function ProfileSwitcher() { (session?.account ? ( - + ) : ( - + ))}