8000 fix: add connection status indicator to vscode windows, windsurf, `open-remote-ssh` by ethanndickson · Pull Request #492 · coder/vscode-coder · GitHub
[go: up one dir, main page]

Skip to content

fix: add connection status indicator to vscode windows, windsurf, open-remote-ssh #492

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

Merged
merged 3 commits into from
May 2, 2025
Merged
Changes from 1 commit
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
8000
Diff view
Prev Previous commit
Next Next commit
lint
  • Loading branch information
ethanndickson committed May 2, 2025
commit 899d2b49808f301b0f1672e167315d51317a3463
7 changes: 3 additions & 4 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export const AuthorityPrefix = "coder-vscode"
// `ms-vscode-remote.remote-ssh`: `-> socksPort <port> ->`
// `codeium.windsurf-remote-openssh`: `=> <port>(socks) =>`
// Windows `ms-vscode-remote.remote-ssh`: `between local port <port>`
export const RemoteSSHLogPortRegex = /(?:-> socksPort (\d+) ->|=> (\d+)\(socks\) =>|between local port (\d+))/;

export const RemoteSSHLogPortRegex = /(?:-> socksPort (\d+) ->|=> (\d+)\(socks\) =>|between local port (\d+))/

/**
* Given the contents of a Remote - SSH log file, find a port number used by the
Expand All @@ -33,12 +32,12 @@ export async function findPort(text: string): Promise<number | null> {
if (matches.length < 2) {
return null
}
const portStr = matches[1] || matches[2] || matches[3];
const portStr = matches[1] || matches[2] || matches[3]
if (!portStr) {
return null
}

return Number.parseInt(portStr);
return Number.parseInt(portStr)
}

/**
Expand Down
0