Skip to content

fix: 修复 Markdown Windows 路径链接打开失败 - #1048

Merged
Menghuan1918 merged 1 commit into
omdsh-dev:devfrom
wang-kaopu:fix/issue-1037-markdown-path-enoent
Nov 7, 2026
Merged

Menghuan1918 merged 1 commit into
omdsh-dev:devfrom
wang-kaopu:fix/issue-1037-markdown-path-enoent

Conversation

@wang-kaopu

Copy link
Copy Markdown
Contributor

Fixes #1037.

The issue report identifies CommonMark consuming the backslash in \_, so the editor receives a path with adjacent path segments. ENOENT errors now show readable text. For Windows absolute paths, the editor probes a bounded set of restored-separator candidates, opens a unique match, and offers a choice when multiple matches exist. The error view includes copy, file-manager reveal, and retry actions.

Validation:

  • pnpm typecheck — passed.
  • pnpm lint — passed.
  • pnpm build — passed.
  • Focused Vitest runs — 43 tests passed.
  • pnpm exec vitest run tests/fs-watch.spec.ts — 6 tests passed.
  • The initial full pnpm test run reported 3 failures (an editor-host assertion, locale-key parity, and an fs-watch timeout). The first two were fixed and covered by focused reruns; the fs-watch test passed on isolated rerun. The full suite was not rerun after the final edits.

@Menghuan1918

Copy link
Copy Markdown
Collaborator

#1055(渲染前把本地 destination 的反斜杠统一为正斜杠)已合入 dev,修掉了 #1037 的根因。你这一笔的候选路径探测是 ENOENT 之后的补救,加上错误视图与 21 份 i18n,范围偏大;合 #1055 后独立价值只剩「可读的 ENOENT 视图 + 复制/打开/重试」。建议 rebase 到最新 dev 后拆成一个精简的错误 UX PR(删掉候选探测与 21 份词典);当前 CONFLICTING 主要是 CHANGELOG.md。感谢!

Menghuan1918 added a commit that referenced this pull request Oct 26, 2026
- CHANGELOG: add the #992 dock-fallback entry
- docs/plans: scan inventory, per-batch merge/close evidence, deferred PR
  verdicts (#1040 #1019 #1048), gates and known local flakes
- issue-triage: #983/#992/#1059 are dev-fixed pending release
@Menghuan1918
Menghuan1918 merged commit acea51a into omdsh-dev:dev Nov 7, 2026
3 checks passed
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.

2 participants