Skip to content

feat: coder connect integration #482

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
lint
  • Loading branch information
ethanndickson committed Apr 17, 2025
commit a65e550753b99702c4cc222627c11b67d0fe18fd
4 changes: 2 additions & 2 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class Commands {
throw new Error("You are not logged in")
}

let agent = treeItem.workspaceAgent
const agent = treeItem.workspaceAgent
if (!agent) {
// `openFromSidebar` is only callable on agents or single-agent workspaces,
// where this will always be set.
Expand Down Expand Up @@ -692,7 +692,7 @@ async function maybeCoderConnectAddr(
const coderConnectHostname = `${agent}.${workspace}.${owner}.${hostnameSuffix}`
try {
const res = await promisify(lookup)(coderConnectHostname)
return res.family == 6 && inRange(res.address, "fd60:627a:a42b::/48") ? coderConnectHostname : undefined
return res.family === 6 && inRange(res.address, "fd60:627a:a42b::/48") ? coderConnectHostname : undefined
} catch {
return undefined
}
Expand Down