Revert other files to main, keep only process-utils changes

This commit is contained in:
xuewenjie
2025-12-19 15:01:26 +08:00
parent d942250905
commit 1386fba278
4 changed files with 143 additions and 108 deletions

View File

@@ -52,7 +52,7 @@ export function detectIdeFromEnv(): IdeInfo {
function verifyVSCode(
ide: IdeInfo,
ideProcessInfo?: {
ideProcessInfo: {
pid: number;
command: string;
},
@@ -61,7 +61,7 @@ function verifyVSCode(
return ide;
}
if (
ideProcessInfo?.command &&
ideProcessInfo.command &&
ideProcessInfo.command.toLowerCase().includes('code')
) {
return IDE_DEFINITIONS.vscode;
@@ -70,7 +70,7 @@ function verifyVSCode(
}
export function detectIde(
ideProcessInfo?: {
ideProcessInfo: {
pid: number;
command: string;
},