File tree 1 file changed +3
-4
lines changed
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"
16
16
// `ms-vscode-remote.remote-ssh`: `-> socksPort <port> ->`
17
17
// `codeium.windsurf-remote-openssh`: `=> <port>(socks) =>`
18
18
// Windows `ms-vscode-remote.remote-ssh`: `between local port <port>`
19
- export const RemoteSSHLogPortRegex = / (?: - > s o c k s P o r t ( \d + ) - > | = > ( \d + ) \( s o c k s \) = > | b e t w e e n l o c a l p o r t ( \d + ) ) / ;
20
-
19
+ export const RemoteSSHLogPortRegex = / (?: - > s o c k s P o r t ( \d + ) - > | = > ( \d + ) \( s o c k s \) = > | b e t w e e n l o c a l p o r t ( \d + ) ) /
21
20
22
21
/**
23
22
* 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> {
33
32
if ( matches . length < 2 ) {
34
33
return null
35
34
}
36
- const portStr = matches [ 1 ] || matches [ 2 ] || matches [ 3 ] ;
35
+ const portStr = matches [ 1 ] || matches [ 2 ] || matches [ 3 ]
37
36
if ( ! portStr ) {
38
37
return null
39
38
}
40
39
41
- return Number . parseInt ( portStr ) ;
40
+ return Number . parseInt ( portStr )
42
41
}
43
42
44
43
/**
You can’t perform that action at this time.
0 commit comments