Skip to content

fix: resolve local file and folder links - #8

Merged
BinaryOutlook merged 3 commits into
mainfrom
fix/bluedir
Sep 17, 2026
Merged

BinaryOutlook merged 3 commits into
mainfrom
fix/bluedir

Conversation

@BinaryOutlook

@BinaryOutlook BinaryOutlook commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Clicking an existing absolute local file or folder link could show a missing-resource error because its path was appended to the workspace root. This repair resolves absolute paths and explicit file: URIs separately, verifies the target, and retains VS Code's existing file-opening and folder-reveal behavior.

Discovered in v0.2.1. Planned fix release: v0.2.2, after merge and release validation. This PR does not publish a release or change the extension version.

  • Preserve ordinary link activation, HTTP links, heading anchors, and the existing workspace-relative base.
  • Show the original destination on hover for rendered, inserted, and pasted links. Preserve authored titles and install one click handler per link, including at initial document load.
  • Offer Copy link address for missing, inaccessible, unsupported, or failed local targets. Copy only on request, and keep private paths and raw exception details out of error messages.
  • Leave the independent link context menu for a follow-up. copyLinkAddress and setupLink provide the extension points without changing the shared host bridge contract.

Validation: compile/package passed; lint has no errors and nine existing warnings; the local unit suite has 227 passes and 11 environment-dependent skips; 49 focused browser tests passed with no retries. A fresh isolated VSIX passed native folder/file opening, encoded file URI, hover, unavailable-target copying, unchanged-Markdown, and clipboard-restoration checks. The new native links suite also runs in every hosted validation lane.

Local environment: macOS 26.5.2 / ARM64. Test examples are synthetic, and dated evidence uses UTC. See the verification record.

Hosted CI: all six checks passed for 537d2175d7d116b2a6467e098db8ff0fc79dd2e6 in validation run 35096279212, attempt 2, verified on 2026-09-16 UTC. Ubuntu, macOS, and Windows each passed 747 browser tests with retries disabled. The native link suite passed on all four validation lanes, including minimum supported VS Code.

Validation history: an earlier Windows clipboard assertion used VS Code's normalized drive-letter casing; the test now checks the fixture writer's exact spelling. This run's first Windows attempt timed out in the existing TOC keyboard-save case, with an empty synthetic document observed. The same assertions passed on rerun; the cause of that timeout remains unestablished. An earlier minimum-version language-switch timeout also passed unchanged on this final commit.

This PR remains open and unmerged, with automatic merging disabled.

@BinaryOutlook
BinaryOutlook merged commit c09b2bd into main Sep 17, 2026
10 of 12 checks passed
BinaryOutlook added a commit that referenced this pull request Sep 17, 2026
#14)

Integrate PRs #8, #9, #10, and #12, preserving their commits and resolved conflicts. The combined revision passed all six VSIX validation jobs in run 35242617333. Closes #1, closes #2, closes #3, closes #4, closes #7.
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.

1 participant