File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -51,23 +51,23 @@ export function listProcesses(rootPid: number): Promise<ProcessItem> {
51
51
const UTILITY_NETWORK_HINT = / - - u t i l i t y - s u b - t y p e = n e t w o r k / i;
52
52
const NODEJS_PROCESS_HINT = / - - m s - e n a b l e - e l e c t r o n - r u n - a s - n o d e / i;
53
53
const WINDOWS_CRASH_REPORTER = / - - c r a s h e s - d i r e c t o r y / i;
54
- const WINDOWS_PTY = / \\ p i p e \\ w i n p t y - c o n t r o l / i;
55
- const WINDOWS_CONSOLE_HOST = / c o n h o s t \. e x e / i;
54
+ const WINPTY = / \\ p i p e \\ w i n p t y - c o n t r o l / i;
55
+ const CONPTY = / c o n h o s t \. e x e . + - - h e a d l e s s / i;
56
56
const TYPE = / - - t y p e = ( [ a - z A - Z - ] + ) / ;
57
57
58
58
// find windows crash reporter
59
59
if ( WINDOWS_CRASH_REPORTER . exec ( cmd ) ) {
60
60
return 'electron-crash-reporter' ;
61
61
}
62
62
63
- // find windows pty process
64
- if ( WINDOWS_PTY . exec ( cmd ) ) {
65
- return 'winpty-process ' ;
63
+ // find winpty process
64
+ if ( WINPTY . exec ( cmd ) ) {
65
+ return 'winpty-agent ' ;
66
66
}
67
67
68
- // find windows console host process
69
- if ( WINDOWS_CONSOLE_HOST . exec ( cmd ) ) {
70
- return 'console-window-host (Windows internal process) ' ;
68
+ // find conpty process
69
+ if ( CONPTY . exec ( cmd ) ) {
70
+ return 'conpty-agent ' ;
71
71
}
72
72
73
73
// find "--type=xxxx"
You can’t perform that action at this time.
0 commit comments