Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_modules
.vscode-test/
*.vsix
package-lock.json

.env
# Reference code (not included in build)
ref/

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ RT-Thread VSCode扩展是一款专为RT-Thread及RT-Thread Smart (版本>5.2.0)

### 版本说明

**v0.4.13**
- 添加aichat界面

**v0.4.12**
- 加入RT-Thread ELF文件符号分析的功能;
- 调整界面,web页面颜色样式可以跟随vscode的浅色/深色自动进行切换;
Expand Down
33 changes: 31 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
"command": "extension.showCreateProject",
"title": "Create RT-Thread Project"
},
{
"command": "extension.showChat",
"title": "RT-Thread: AI Chat"
},
{
"command": "extension.buildProject",
"title": "Build RT-Thread",
Expand Down Expand Up @@ -177,6 +181,31 @@
"type": "object",
"title": "RT-Thread Smart",
"properties": {
"smart.aiChatBaseUrl": {
"type": "string",
"default": "https://ai.rt-thread.org",
"description": "AI Chat 后端地址(用于 RT-Thread 登录 code 交换 sid、以及 VSCode Chat 请求 /api/*)。",
"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)",
"scope": "resource",
"order": 2
},
"smart.aiChatRequestTimeoutMs": {
"type": "number",
"default": 30000,
"minimum": 1000,
"description": "AI Chat 请求超时(毫秒)。网络不通时可避免长时间卡住。",
"markdownDescription": "AI Chat 请求超时(毫秒)。网络不通时可避免长时间卡住。\n\n**示例:**\n- `10000`: 10 秒\n- `30000`: 30 秒(默认)",
"scope": "resource",
"order": 3
},
"smart.authOpenInVscode": {
"type": "boolean",
"default": false,
"description": "RT-Thread 登录是否在 VSCode 内置浏览器中打开(登录完成后可自动关闭)。",
"markdownDescription": "RT-Thread 登录是否在 VSCode 内置浏览器中打开(登录完成后可自动关闭)。\n\n开启后会优先使用 VSCode 的 Simple Browser;若不可用则回退到系统默认浏览器。",
"scope": "resource",
"order": 4
},
"smart.menuCommands": {
"type": "array",
"items": {
Expand All @@ -186,7 +215,7 @@
"description": "自定义构建菜单命令列表,使用 Ctrl+Shift+M 快捷键打开菜单。",
"markdownDescription": "自定义构建菜单命令列表,使用 `Ctrl+Shift+M` 快捷键打开菜单。\n\n**示例:**\n```json\n[\n \"scons -c\",\n \"scons --dist\",\n \"scons --target=mdk5\"\n]\n```",
"scope": "resource",
"order": 0
"order": 10
},
"smart.parallelBuidNumber": {
"type": "number",
Expand All @@ -195,7 +224,7 @@
"description": "并行编译使用的 CPU 核心数(默认为 1)。设置大于 1 的值可以加快编译速度。",
"markdownDescription": "并行编译使用的 CPU 核心数(默认为 1)。\n\n设置大于 1 的值可以加快编译速度,例如:\n- `1`: 单核编译\n- `4`: 使用 4 个核心并行编译\n- `8`: 使用 8 个核心并行编译",
"scope": "resource",
"order": 1
"order": 11
}
}
},
Expand Down
Loading