File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/platform/terminal/node Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export class PtyService extends Disposable implements IPtyService {
124
124
await new Promise < string > ( ( resolve , reject ) => {
125
125
exec ( `kill ${ processId } ` , { } , ( err , stdout ) => {
126
126
if ( err ) {
127
- return reject ( `Problem occurred when killing the process w ID : ${ processId } ` ) ;
127
+ return reject ( `Problem occurred when killing the process with PID : ${ processId } ` ) ;
128
128
}
129
129
resolve ( stdout ) ;
130
130
} ) ;
@@ -143,13 +143,13 @@ export class PtyService extends Disposable implements IPtyService {
143
143
} ) ;
144
144
const processesForPort = stdout . split ( '\n' ) ;
145
145
if ( processesForPort . length >= 1 ) {
146
- const capturePid = / L I S T E N I N G \s + ( \d { 3 } ) / ;
146
+ const capturePid = / L I S T E N I N G \s + ( \d + ) / ;
147
147
const processId = processesForPort [ 0 ] . match ( capturePid ) ?. [ 1 ] ;
148
148
if ( processId ) {
149
149
await new Promise < string > ( ( resolve , reject ) => {
150
150
exec ( `Taskkill /F /PID ${ processId } ` , { } , ( err , stdout ) => {
151
151
if ( err ) {
152
- return reject ( `Problem occurred when killing the process w ID : ${ processId } ` ) ;
152
+ return reject ( `Problem occurred when killing the process with PID : ${ processId } ` ) ;
153
153
}
154
154
resolve ( stdout ) ;
155
155
} ) ;
You can’t perform that action at this time.
0 commit comments