Skip to content

fix(windows): 修复 Monaco 编辑器无法点到行尾并拖选整行的问题 - #111

Closed
Rangsh wants to merge 15 commits into
1lck:mainfrom
Rangsh:fix/windows-monaco-caret-selection
Closed

Rangsh wants to merge 15 commits into
1lck:mainfrom
Rangsh:fix/windows-monaco-caret-selection

Conversation

@Rangsh

@Rangsh Rangsh commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 修复 Windows Monaco 编辑器无法把光标点到行尾、也无法拖选整行删除的问题。
  • 行尾 Git Blame 不再注入到文本里,避免挡住最后一个字符并在拖选时打断选区。
  • 规范化 CRLF 换行,并关闭错误的等宽宽度缓存,让点击位置和光标对齐。

Test plan

  • 打开 Java 文件(如 BaseResponse.java),点击 private int code; 行尾,光标应停在分号后面
  • 按 Backspace 应删除分号,而不是分号前的字符
  • 从行首拖到行尾,或点击左侧行号,应能选中整行并删除
  • 关闭并重新打开该文件后,上述行为仍然正常

soarhill and others added 15 commits August 15, 2026 22:42
- qualify git_checkout, git_checkout_preflight, and git_delete_branch
  references with refs/heads/ and pass referenceKind: local, matching the
  shared core contract that rejects short branch names
- translate git_checkout_preflight to git.checkoutPreflight and adapt its
  blocking paths plus git_checkout results for the branch manager UI
- run checkout preflight from checkoutBranch so blocked switches surface
  hasChanges and reuse the existing stash-and-retry flow, and propagate
  real git error output on failure
- translate git_diff_file and git_status_diff_stats filePath into the
  git.diff pathspecs contract instead of the unrelated paths field, and
  fall back to ["."] so whole-tree stat requests are not rejected
- derive diff stat staged flags from the request instead of hardcoding
  false, and fetch staged and unstaged stats so both groups show counts
- open diffs in split view like the macOS reference product and IDEA
  instead of a hardcoded unified default
- persist the unified/split preference in a zustand store so the choice
  survives reopening diffs and restarting the app
…ut-contract

fix(windows): align local branch checkout and deletion refs
…y-pagination

fix(windows): improve Git diff viewing and history pagination
在活动栏左下角增加运行入口,配置由 Rust Core 生成并写入 .lithe,Windows 宿主负责发现本机 JDK/Maven 并拉起进程。打开项目不会自动生成配置。
行尾 Git Blame 注入文本会挡住最后一个字符,CRLF 残留和等宽宽度缓存也会让光标停在行尾前。改为浮动 Blame、规范化换行,并在拖选时避免打断选区。

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants