fix: VSCode detection null check and debug message optimization (#983)

This commit is contained in:
pomelo
2025-11-07 17:28:37 +08:00
committed by GitHub
parent c3d427730e
commit 5390f662fc
2 changed files with 10 additions and 2 deletions

View File

@@ -60,7 +60,10 @@ function verifyVSCode(
if (ide.name !== IDE_DEFINITIONS.vscode.name) {
return ide;
}
if (ideProcessInfo.command.toLowerCase().includes('code')) {
if (
ideProcessInfo.command &&
ideProcessInfo.command.toLowerCase().includes('code')
) {
return IDE_DEFINITIONS.vscode;
}
return IDE_DEFINITIONS.vscodefork;