Enhance debug features, AI code actions, and SQL export options#108
Merged
Conversation
- DebugVarNode 改 items-center 居中对齐折叠箭头与内容;空值变量(如 special variables 分组)不再显示多余冒号 - DebugPanel 左缘新增拖拽手柄改宽(240px ~ 窗口宽-200px),宽度持久化到 KV(debug-panel-width),卸载清理监听
- executable 仅在 #[cfg(unix)] 块内使用,Windows 下 clippy -D warnings 报 unused-variables 导致 CI 失败 - 非 Unix 平台显式 let _ = executable 消费该参数(不改 Tauri 命令签名,前端仍传 executable)
- 新增 AiCodeAction:对选区(无选区则整篇)调 ai_chat,按动作给不同 system 提示 - 解释=只读展示;重构=可替换选区;生成测试=可插入到下方;均可复制 - 编辑器右键菜单新增三个 AI 动作;复用 useAiConfig/ai_chat - 补充 aiCode.* 文案
- AiAssistant 输入区新增「当前文件 / 项目结构」上下文开关 - 开启后把当前文件内容(截断 12k)与项目文件列表(前 200)注入 system 提示,按需附带 - 项目文件列表缓存,rootDir 变更失效;补充 chat.context/ctxFile/ctxProject 文案
- 上一版 #[cfg(not(unix))] let _ = executable 未能让 Windows clippy -D warnings 通过 - 改为函数级 #[cfg_attr(not(unix), allow(unused_variables))],标准可靠;参数名保持不变以匹配 Tauri 前端调用
- utils/csv 新增 downloadJson 与 downloadXlsx(按需加载 SheetJS) - SqlTableView 导出按钮改为下拉菜单:CSV / JSON / Excel(.xlsx) - 补充 sql.export 文案
- 新增 useSqlHistory(KV 持久化、去重提顶、非收藏裁剪至 100)与 SqlHistory 工具栏弹层 - runSql 执行时记入历史;弹层支持载入编辑器/重跑/收藏置顶/删除/清空(留收藏) - SQL 工具栏新增历史按钮;补充 sqlHistory.* 文案
This reverts commit 5d3491d.
- 每条执行记录可加星收藏(按记录 id,KV 持久化),头部「只看收藏」过滤 - SQL 查询本就记入执行历史,收藏并入此处,避免与独立 SQL 历史重复(D1 已回退)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.