mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
fix: handle null command in verifyVSCode function
This commit is contained in:
@@ -60,7 +60,10 @@ function verifyVSCode(
|
|||||||
if (ide.name !== IDE_DEFINITIONS.vscode.name) {
|
if (ide.name !== IDE_DEFINITIONS.vscode.name) {
|
||||||
return ide;
|
return ide;
|
||||||
}
|
}
|
||||||
if (ideProcessInfo.command.toLowerCase().includes('code')) {
|
if (
|
||||||
|
ideProcessInfo.command &&
|
||||||
|
ideProcessInfo.command.toLowerCase().includes('code')
|
||||||
|
) {
|
||||||
return IDE_DEFINITIONS.vscode;
|
return IDE_DEFINITIONS.vscode;
|
||||||
}
|
}
|
||||||
return IDE_DEFINITIONS.vscodefork;
|
return IDE_DEFINITIONS.vscodefork;
|
||||||
|
|||||||
Reference in New Issue
Block a user