Skip to content

Commit 33fc91d

Browse files
authored
Merge pull request microsoft#183726 from microsoft/tyriar/proc_name
Improve winpty/conpty name in process explorer
2 parents 73d3a29 + 44b766d commit 33fc91d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/vs/base/node/ps.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,23 @@ export function listProcesses(rootPid: number): Promise<ProcessItem> {
5151
const UTILITY_NETWORK_HINT = /--utility-sub-type=network/i;
5252
const NODEJS_PROCESS_HINT = /--ms-enable-electron-run-as-node/i;
5353
const WINDOWS_CRASH_REPORTER = /--crashes-directory/i;
54-
const WINDOWS_PTY = /\\pipe\\winpty-control/i;
55-
const WINDOWS_CONSOLE_HOST = /conhost\.exe/i;
54+
const WINPTY = /\\pipe\\winpty-control/i;
55+
const CONPTY = /conhost\.exe.+--headless/i;
5656
const TYPE = /--type=([a-zA-Z-]+)/;
5757

5858
// find windows crash reporter
5959
if (WINDOWS_CRASH_REPORTER.exec(cmd)) {
6060
return 'electron-crash-reporter';
6161
}
6262

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';
6666
}
6767

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';
7171
}
7272

7373
// find "--type=xxxx"

0 commit comments

Comments
 (0)