File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ export class RemoteAttachPicker {
200
200
pid usr command cores
201
201
1 ?
202
202
2 ?
203
- 3 /usr/bin/sample 0
203
+ 3 /usr/bin/sample 0,2
204
204
4 root /usr/bin/gdbserver --multi :6000 0
205
205
206
206
Returns an AttachItem array, each item contains a label of "<user >command", and a pid.
@@ -217,7 +217,7 @@ export class RemoteAttachPicker {
217
217
for ( const line of lines ) {
218
218
const trimmedLine : string = line . trim ( ) ;
219
219
if ( ! trimmedLine . endsWith ( '?' ) ) {
220
- const matches : RegExpMatchArray | null = trimmedLine . match ( / ^ ( \d + ) \s + ( .+ ?) \s + \d + $ / ) ;
220
+ const matches : RegExpMatchArray | null = trimmedLine . match ( / ^ ( \d + ) \s + ( .+ ?) \s + (?: \d + , ) * \d + $ / ) ;
221
221
if ( matches ?. length === 3 ) {
222
222
const id : string = matches [ 1 ] ;
223
223
const userCommand : string = matches [ 2 ] ;
You can’t perform that action at this time.
0 commit comments