Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(site): update vs code dev container button URLs#18696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions.devcontainer/devcontainer.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,15 +24,15 @@
{
"slug": "cursor",
"displayName": "Cursor Desktop",
"url": "cursor://coder.coder-remote/openDevContainer?owner=${localEnv:CODER_WORKSPACE_OWNER_NAME}&workspace=${localEnv:CODER_WORKSPACE_NAME}&agent=${localEnv:CODER_WORKSPACE_PARENT_AGENT_NAME}&url=${localEnv:CODER_URL}&token=$SESSION_TOKEN&devContainerName=${localEnv:CONTAINER_ID}&devContainerFolder=${containerWorkspaceFolder}",
"url": "cursor://coder.coder-remote/openDevContainer?owner=${localEnv:CODER_WORKSPACE_OWNER_NAME}&workspace=${localEnv:CODER_WORKSPACE_NAME}&agent=${localEnv:CODER_WORKSPACE_PARENT_AGENT_NAME}&url=${localEnv:CODER_URL}&token=$SESSION_TOKEN&devContainerName=${localEnv:CONTAINER_ID}&devContainerFolder=${containerWorkspaceFolder}&localWorkspaceFolder=${localWorkspaceFolder}",
"external": true,
"icon": "/icon/cursor.svg",
"order": 1
},
{
"slug": "windsurf",
"displayName": "Windsurf Editor",
"url": "windsurf://coder.coder-remote/openDevContainer?owner=${localEnv:CODER_WORKSPACE_OWNER_NAME}&workspace=${localEnv:CODER_WORKSPACE_NAME}&agent=${localEnv:CODER_WORKSPACE_PARENT_AGENT_NAME}&url=${localEnv:CODER_URL}&token=$SESSION_TOKEN&devContainerName=${localEnv:CONTAINER_ID}&devContainerFolder=${containerWorkspaceFolder}",
"url": "windsurf://coder.coder-remote/openDevContainer?owner=${localEnv:CODER_WORKSPACE_OWNER_NAME}&workspace=${localEnv:CODER_WORKSPACE_NAME}&agent=${localEnv:CODER_WORKSPACE_PARENT_AGENT_NAME}&url=${localEnv:CODER_URL}&token=$SESSION_TOKEN&devContainerName=${localEnv:CONTAINER_ID}&devContainerFolder=${containerWorkspaceFolder}&localWorkspaceFolder=${localWorkspaceFolder}",
"external": true,
"icon": "/icon/windsurf.svg",
"order": 4
Expand Down
6 changes: 5 additions & 1 deletionsite/src/modules/resources/AgentDevcontainerCard.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -307,6 +307,8 @@ export const AgentDevcontainerCard: FC<AgentDevcontainerCardProps> = ({
workspaceName={workspace.name}
devContainerName={devcontainer.container.name}
devContainerFolder={subAgent?.directory ?? ""}
localWorkspaceFolder={devcontainer.workspace_folder}
localConfigFile={devcontainer.config_path || ""}
displayApps={displayApps} // TODO(mafredri): We could use subAgent display apps here but we currently set none.
agentName={parentAgent.name}
/>
Expand All@@ -331,7 +333,9 @@ export const AgentDevcontainerCard: FC<AgentDevcontainerCardProps> = ({

{wildcardHostname !== "" &&
devcontainer.container?.ports.map((port) => {
const portLabel = `${port.port}/${port.network.toUpperCase()}`;
const portLabel = `${
port.port
}/${port.network.toUpperCase()}`;
const hasHostBind =
port.host_port !== undefined && port.host_ip !== undefined;
const helperText = hasHostBind
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,6 +17,8 @@ export const Default: Story = {
agentName: MockWorkspaceAgent.name,
devContainerName: "musing_ride",
devContainerFolder: "/workspace/coder",
localWorkspaceFolder: "/home/coder/coder",
localConfigFile: "/home/coder/coder/.devcontainer/devcontainer.json",
displayApps: [
"vscode",
"vscode_insiders",
Expand All@@ -34,6 +36,8 @@ export const VSCodeOnly: Story = {
agentName: MockWorkspaceAgent.name,
devContainerName: "nifty_borg",
devContainerFolder: "/workspace/coder",
localWorkspaceFolder: "/home/coder/coder",
localConfigFile: "/home/coder/coder/.devcontainer/devcontainer.json",
displayApps: [
"vscode",
"port_forwarding_helper",
Expand All@@ -50,6 +54,8 @@ export const InsidersOnly: Story = {
agentName: MockWorkspaceAgent.name,
devContainerName: "amazing_swartz",
devContainerFolder: "/workspace/coder",
localWorkspaceFolder: "/home/coder/coder",
localConfigFile: "/home/coder/coder/.devcontainer/devcontainer.json",
displayApps: [
"vscode_insiders",
"port_forwarding_helper",
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,6 +15,8 @@ interface VSCodeDevContainerButtonProps {
agentName?: string;
devContainerName: string;
devContainerFolder: string;
localWorkspaceFolder: string;
localConfigFile: string;
displayApps: readonly DisplayApp[];
}

Expand DownExpand Up@@ -112,6 +114,8 @@ const VSCodeButton: FC<VSCodeDevContainerButtonProps> = ({
agentName,
devContainerName,
devContainerFolder,
localWorkspaceFolder,
localConfigFile,
}) => {
const [loading, setLoading] = useState(false);

Expand All@@ -129,6 +133,8 @@ const VSCodeButton: FC<VSCodeDevContainerButtonProps> = ({
token: key,
devContainerName,
devContainerFolder,
localWorkspaceFolder,
localConfigFile,
});
if (agentName) {
query.set("agent", agentName);
Expand DownExpand Up@@ -156,6 +162,8 @@ const VSCodeInsidersButton: FC<VSCodeDevContainerButtonProps> = ({
agentName,
devContainerName,
devContainerFolder,
localWorkspaceFolder,
localConfigFile,
}) => {
const [loading, setLoading] = useState(false);

Expand All@@ -173,6 +181,8 @@ const VSCodeInsidersButton: FC<VSCodeDevContainerButtonProps> = ({
token: key,
devContainerName,
devContainerFolder,
localWorkspaceFolder,
localConfigFile,
});
if (agentName) {
query.set("agent", agentName);
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp