File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ export const AuthorityPrefix = "coder-vscode"
1616// `ms-vscode-remote.remote-ssh`: `-> socksPort <port> ->`
1717// `codeium.windsurf-remote-openssh`: `=> <port>(socks) =>`
1818// Windows `ms-vscode-remote.remote-ssh`: `between local port <port>`
19- export const RemoteSSHLogPortRegex = /(?:-> socksPort (\d+) ->|=> (\d+)\(socks\) =>|between local port (\d+))/;
20-
19+ export const RemoteSSHLogPortRegex = /(?:-> socksPort (\d+) ->|=> (\d+)\(socks\) =>|between local port (\d+))/
2120
2221/**
2322 * Given the contents of a Remote - SSH log file, find a port number used by the
@@ -33,12 +32,12 @@ export async function findPort(text: string): Promise<number | null> {
3332 if (matches.length < 2) {
3433 return null
3534 }
36- const portStr = matches[1] || matches[2] || matches[3];
35+ const portStr = matches[1] || matches[2] || matches[3]
3736 if (!portStr) {
3837 return null
3938 }
4039
41- return Number.parseInt(portStr);
40+ return Number.parseInt(portStr)
4241}
4342
4443/**
You can’t perform that action at this time.
0 commit comments