fix: urls
This commit is contained in:
parent
af992849a4
commit
7212a63cb4
3 changed files with 9 additions and 9 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { ConfigHandler } from "core/config/ConfigHandler";
|
||||
import { getControlPlaneEnv } from "core/control-plane/env";
|
||||
import { DataLogger } from "core/data/log";
|
||||
import { EDIT_MODE_STREAM_ID } from "core/edit/constants";
|
||||
import {
|
||||
|
|
@ -387,10 +388,9 @@ export class VsCodeMessenger {
|
|||
);
|
||||
|
||||
if (selection === "Connect GitHub") {
|
||||
const env = await getControlPlaneEnv(this.ide.getIdeSettings());
|
||||
vscode.env.openExternal(
|
||||
vscode.Uri.parse(
|
||||
"https://hub.continue.dev/settings/integrations",
|
||||
),
|
||||
vscode.Uri.parse(`${env.APP_URL}settings/integrations`),
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -109,8 +109,9 @@ export function AgentsList() {
|
|||
className="cursor-pointer rounded-lg border border-gray-200 bg-gray-50 p-3 transition-colors hover:bg-gray-100"
|
||||
onClick={() => {
|
||||
// Open agent detail in browser
|
||||
const agentUrl = `https://app.continue.dev/agents/${agent.id}`;
|
||||
ideMessenger.post("openUrl", agentUrl);
|
||||
ideMessenger.post("controlPlane/openUrl", {
|
||||
path: `agents/${agent.id}`,
|
||||
});
|
||||
}}
|
||||
>
|
||||
<div className="flex items-start justify-between">
|
||||
|
|
|
|||
|
|
@ -31,10 +31,9 @@ export function BackgroundModeView({ onCreateAgent }: BackgroundModeViewProps) {
|
|||
|
||||
const handleOpenGitHubSettings = useCallback(() => {
|
||||
// Open the hub settings page for GitHub integration
|
||||
ideMessenger.post(
|
||||
"openUrl",
|
||||
"https://hub.continue.dev/settings/integrations/github",
|
||||
);
|
||||
ideMessenger.post("controlPlane/openUrl", {
|
||||
path: "settings/integrations/github",
|
||||
});
|
||||
}, [ideMessenger]);
|
||||
|
||||
// Check if user has GitHub installations when signed in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue