Enhance editor features and improve branch deletion process#119
Merged
Conversation
git_branch_delete 增加 force 参数(-D);前端删除分支若因未完全合并被拒, 弹出「强制删除」确认(提示独有提交可能丢失)而非直接报错。
用 @codemirror/commands 的 selectParentSyntax 逐级扩展选区,收缩用选区栈回退; 命令面板「代码」分组 + 快捷键 Alt+Shift+←/→(可自定义)。
新增 @codemirror/commands 依赖拉进了第二个 @codemirror/state(6.7.0 vs 6.6.0), 双实例破坏 Extension 的 instanceof 检查导致运行时报错;overrides 统一到 6.7.0。
空查询时按最近执行顺序把命令置顶(KV 持久化、去重、上限 8), 最近项带时钟标记;有查询时仍走原有匹配排序。
用 sql-formatter 对 SQL 编辑内容(选区或全文)一键美化,关键字大写; 命令面板「代码」分组,仅在 SQL 编辑时生效。
useGitPermalink 增加 openRepoOnWeb:取 origin 远程并规范化为网页地址(SSH/HTTPS 皆可)后打开; 命令面板可触发,无远程时提示。
新增 useNamedWorkspaces(KV 存储)+ WorkspaceManager 弹窗:把当前主根+额外挂载根 存为命名条目,一键切换;打开时设主根并恢复额外根。命令面板「命名工作区」入口。
AiCodeAction 增加 doc 模式:为选中代码生成规范文档注释;应用时插入到目标行上方并对齐缩进。 编辑器右键与命令面板均可触发。
lspExtension 新增 fetchDocumentSymbols(复用 plugin.client.request),兼容分层/扁平结果; 大纲打开时尝试 LSP 精确符号(含真实层级与 SymbolKind),不可用则回退正则提取。
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.