File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
18
18
- Snippets: Updated all snippets to use ` v0.28.0 ` schema
19
19
- Commands: Removed configuration commands from editor
20
+ - Detection: Improved detection of Dev Proxy processes
20
21
21
22
### Fixed:
22
23
Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ export const isDevProxyRunning = async (devProxyExe: string): Promise<boolean> =
54
54
return processId . trim ( ) !== '' ;
55
55
} ;
56
56
if ( platform === 'darwin' ) {
57
- const processId = await executeCommand ( `$SHELL -c "ps -ef | grep ${ devProxyExe } | grep -v grep | awk '{ print $2} '"` ) ;
57
+ const processId = await executeCommand ( `$SHELL -c "ps -e -o pid=,comm= | awk \'\\$2==\" ${ devProxyExe } \" { print \\$1}\ '"` ) ;
58
58
return processId . trim ( ) !== '' ;
59
59
} ;
60
60
if ( platform === 'linux' ) {
61
- const processId = await executeCommand ( `/bin/bash -c "ps -ef | grep ${ devProxyExe } | grep -v grep | awk '{ print $2} '"` ) ;
61
+ const processId = await executeCommand ( `/bin/bash -c "ps -e -o pid=,comm= | awk \'\\$2==\" ${ devProxyExe } \" { print \\$1}\ '"` ) ;
62
62
return processId . trim ( ) !== '' ;
63
63
}
64
64
return false ;
You can’t perform that action at this time.
0 commit comments