## Issue Description
在 Qoder CN IDE 中打开扩展商店,在搜索框输入任意关键词搜索时,页面报错:
**Cannot read properties of undefined (reading ‘extensions’)**
Root Cause Analysis
定位到 `workbench.desktop.main.js` 中 `queryRawGalleryExtensions` 方法的响应解析代码:
```
const p = await Ute(u);
if (p) {
const f = p.results[0], // 当 results 为空数组时 f = undefined
g = f.extensions, // 报错:Cannot read properties of undefined
```
当 marketplace API(marketplace.lingma.aliyun.com)返回的响应中 `results` 为空数组时,`p.results[0]` 为 `undefined`,接着访问 `.extensions` 属性就会抛出异常。
Fix Suggestion
将 `if (p)` 改为 `if (p && p.results && p.results[0])`,在访问 `p.results[0]` 之前增加空值检查。
Steps to Reproduce
- 打开 Qoder CN IDE
- 点击左侧扩展图标打开扩展商店
- 在搜索框输入任意关键词
- 观察到报错
Expected Behavior
搜索应正常返回结果,或在无结果时显示"未找到扩展"的提示。
Actual Behavior
页面报错 “Cannot read properties of undefined (reading ‘extensions’)”,无法显示任何搜索结果。
Operating System
Windows 10/11
Current Qoder Version
Qoder CN IDE 1.26.0 (VSCode 1.106.3, commit 3807f77f6c)