Skip to content

Commit 054a821

Browse files
committed
添加aichat界面
1 parent a895186 commit 054a821

File tree

5 files changed

+4225
-581
lines changed

5 files changed

+4225
-581
lines changed

package.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,31 @@
180180
"type": "object",
181181
"title": "RT-Thread Smart",
182182
"properties": {
183+
"smart.aiChatBaseUrl": {
184+
"type": "string",
185+
"default": "https://ai.rt-thread.org",
186+
"description": "AI Chat 后端地址(用于 RT-Thread 登录 code 交换 sid、以及 VSCode Chat 请求 /api/*)。",
187+
"markdownDescription": "AI Chat 后端地址(用于 RT-Thread 登录 code 交换 sid、以及 VSCode Chat 请求 `/api/*`)。\n\n**示例:**\n- `https://ai.rt-thread.org`\n- `http://127.0.0.1:3000`(本地启动 AiChat)",
188+
"scope": "resource",
189+
"order": 2
190+
},
191+
"smart.aiChatRequestTimeoutMs": {
192+
"type": "number",
193+
"default": 30000,
194+
"minimum": 1000,
195+
"description": "AI Chat 请求超时(毫秒)。网络不通时可避免长时间卡住。",
196+
"markdownDescription": "AI Chat 请求超时(毫秒)。网络不通时可避免长时间卡住。\n\n**示例:**\n- `10000`: 10 秒\n- `30000`: 30 秒(默认)",
197+
"scope": "resource",
198+
"order": 3
199+
},
200+
"smart.authOpenInVscode": {
201+
"type": "boolean",
202+
"default": false,
203+
"description": "RT-Thread 登录是否在 VSCode 内置浏览器中打开(登录完成后可自动关闭)。",
204+
"markdownDescription": "RT-Thread 登录是否在 VSCode 内置浏览器中打开(登录完成后可自动关闭)。\n\n开启后会优先使用 VSCode 的 Simple Browser;若不可用则回退到系统默认浏览器。",
205+
"scope": "resource",
206+
"order": 4
207+
},
183208
"smart.menuCommands": {
184209
"type": "array",
185210
"items": {
@@ -189,7 +214,7 @@
189214
"description": "自定义构建菜单命令列表,使用 Ctrl+Shift+M 快捷键打开菜单。",
190215
"markdownDescription": "自定义构建菜单命令列表,使用 `Ctrl+Shift+M` 快捷键打开菜单。\n\n**示例:**\n```json\n[\n \"scons -c\",\n \"scons --dist\",\n \"scons --target=mdk5\"\n]\n```",
191216
"scope": "resource",
192-
"order": 0
217+
"order": 10
193218
},
194219
"smart.parallelBuidNumber": {
195220
"type": "number",
@@ -198,7 +223,7 @@
198223
"description": "并行编译使用的 CPU 核心数(默认为 1)。设置大于 1 的值可以加快编译速度。",
199224
"markdownDescription": "并行编译使用的 CPU 核心数(默认为 1)。\n\n设置大于 1 的值可以加快编译速度,例如:\n- `1`: 单核编译\n- `4`: 使用 4 个核心并行编译\n- `8`: 使用 8 个核心并行编译",
200225
"scope": "resource",
201-
"order": 1
226+
"order": 11
202227
}
203228
}
204229
},

0 commit comments

Comments
 (0)