fix login for non-standard VS Code-based IDEs

This commit is contained in:
Nate 2025-03-16 20:02:22 -07:00
parent e07d97dfc7
commit 36c0e05e22
2 changed files with 7 additions and 16 deletions

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "1.1.11",
"version": "1.1.12",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "1.1.11",
"version": "1.1.12",
"license": "Apache-2.0",
"dependencies": {
"@continuedev/fetch": "^1.0.3",
@ -106,7 +106,7 @@
"@aws-sdk/client-sagemaker-runtime": "^3.758.0",
"@aws-sdk/credential-providers": "^3.758.0",
"@continuedev/config-types": "^1.0.13",
"@continuedev/config-yaml": "^1.0.60",
"@continuedev/config-yaml": "^1.0.63",
"@continuedev/fetch": "^1.0.4",
"@continuedev/llm-info": "^1.0.2",
"@continuedev/openai-adapters": "^1.0.10",

View file

@ -166,19 +166,10 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
}
get ideRedirectUri() {
if (
env.uriScheme === "vscode-insiders" ||
env.uriScheme === "vscode" ||
env.uriScheme === "code-oss"
) {
// We redirect to a page that says "you can close this page", and that page finishes the redirect
const url = new URL(controlPlaneEnv.APP_URL);
url.pathname = `/auth/${env.uriScheme}-redirect`;
return url.toString();
}
const publisher = this.context.extension.packageJSON.publisher;
const name = this.context.extension.packageJSON.name;
return `${env.uriScheme}://${publisher}.${name}`;
// We redirect to a page that says "you can close this page", and that page finishes the redirect
const url = new URL(controlPlaneEnv.APP_URL);
url.pathname = `/auth/${env.uriScheme}-redirect`;
return url.toString();
}
public static useOnboardingUri: boolean = false;