Skip to content

Centralize path handling in lspkit::path; fix scheduler burst; trim and upgrade deps - #66

Open
MelbourneDeveloper wants to merge 5 commits into
mainfrom
fix/scheduler-final-trigger
Open

MelbourneDeveloper wants to merge 5 commits into
mainfrom
fix/scheduler-final-trigger

Conversation

@MelbourneDeveloper

@MelbourneDeveloper MelbourneDeveloper commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

TLDR

Every file path and file URI in the workspace now goes through one module, lspkit::path, so the profiler names a file by the same URI the language server uses. The PR also fixes the live scheduler's dropped burst, adds the release-review skill, and upgrades and trims dependencies under the repo's 7-day cooldown.

Details

Bug: one file had two URIs. The profiler built diagnostic URIs with the url crate, but the server builds them with its own URI code. The two disagreed:

  • Linux: /home/me/Projects (old)/a+b@c.py came out as Projects%20(old)/a+b@c.py from the profiler and Projects%20%28old%29/a%2Bb%40c.py from the server.
  • Windows: the profiler kept sub/../, while the server resolves it.

So profiler hints landed on a phantom document.

Path handling centralized ([PATH-CENTRAL], new in the spec). lspkit-server::uri and the profiler's paths module now live in lspkit::path, along with the watcher's canonicalize and rebase. lspkit::path is now the only code that converts, resolves, normalizes, compares or rebases paths.

  • lspkit_server::uri, path_to_uri, uri_to_path and document_uri_from_path remain as re-exports.
  • lsp_profiler::paths and lsp_profiler::diagnostics::file_uri are removed (breaking).
  • The profiler crates now depend on lspkit, so the layers become lspkit (L0) → lspkit-server / lsp-profiler (L1) → lsp-profiler-dotnet (L2).
  • The publish order in release.yml and [REL-ORDER] is now lspkit, lsp-profiler, lsp-profiler-dotnet, lspkit-server.

TypeScript. src/paths.ts (formerly editor-path-key.ts) is the UI library's only path module ([PROF-UI-PATHS]). pathRules, looksLikePath and the DAP assertion's hand-rolled normalizer moved into it; the normalizer became comparablePath, which no longer lowercases case-sensitive POSIX paths.

Rule file. .claude/rules/path-handling.md loads the rule into every agent session.

Dependencies ([DEPS-MINIMAL], [DEPS-MSRV]):

  • Dropped url, and with it idna plus about 15 ICU crates.
  • Dropped dashmap. Vfs now uses a RwLock<HashMap>. ParseCache uses one Mutex over its map and eviction order, so the two can no longer disagree between racing parsers.
  • Dropped the unused tokio-util codec feature.
  • rust-version is now 1.95, the highest MSRV in the lockfile (sysinfo 0.39.6).
  • Cargo, npm and NuGet were refreshed to the newest releases published before 2026-11-19, matching Dependabot's 7-day cooldown. Releases newer than that were held back, including notify 9, salsa 0.28.6 and oxlint 1.95.
  • NuGet: TraceEvent 3.2.6 → 4.0.0, NETCore.Client 0.2.750501, Test.Sdk 18.12.0.
  • npm audit reports 0 vulnerabilities in both packages.
  • oxlint 1.94 makes init-declarations contradict unicorn/no-useless-undefined, so init-declarations is off, with the reason written in .oxlintrc.json.

Other fixes:

  • Workspace locks recover from poisoning instead of silently doing nothing; containment and equality go through lspkit::path.
  • The live scheduler delivers a ready burst when the events end behind a busy consumer (see the first commit).
  • memory_start_lifetime_tests spawned Unix sleep, which fails on Windows. It now uses an idle PowerShell process there.
  • Windows profiler fixtures discard the validated apphost executable path #24 was verified on native Windows: the C# e2e (16), F# e2e (18) and unit (16) tests of lsp-profiler-dotnet pass.

How Do The Automated Tests Prove It Works?

  • lsp-profiler::diagnostics::tests::diagnostic_uri_is_the_servers_uri_for_the_same_file failed before the fix on both platforms:

    • Linux: left: "file:///home/me/Projects%20(old)/a+b@c.py".
    • Windows: left: "file:///C:/repo/sub/../a+b.py".

    It passes now.

  • The URI table suites moved with the code (lspkit/tests/path_uri*.rs, lspkit/src/path/style_tests.rs) and pass on Linux and on native Windows.

  • Live scheduler:

    • live_scheduler::events_ending_behind_a_busy_consumer_still_deliver_the_ready_burst fails without the fix ("the ready burst survives the end of the events").
    • events_absorbed_by_a_ready_burst_are_delivered_when_the_events_end pins late events that join a ready burst.
  • The full Linux make ci sequence (fmt check, website-test, lint, test with coverage gate, build) was run in WSL with the same tools CI installs; and every step passed, including the coverage gate.

  • UI package: npm run lint is clean, test:debug passes 124 tests, and test:paths passes 3.

@MelbourneDeveloper MelbourneDeveloper changed the title Live scheduler: deliver a ready burst when the events end behind a busy consumer Live scheduler: deliver a ready burst behind a busy consumer; add release-review skill Nov 26, 2026
… 9 and refresh Cargo.lock (url 2.5.9 for RUSTSEC-2026-0592)
- Move lspkit-server::uri and lsp-profiler::paths into lspkit::path
  ([PATH-CENTRAL]); the profiler now spells file URIs exactly as the
  server does (fixes divergent encoding of ( ) + @ and unresolved ..).
- Add is_within, same_path, find_ancestor, canonical, rebase and
  document_uri there; route watcher, workspace, config and test-support
  through them. Add .claude/rules/path-handling.md.
- TypeScript: src/paths.ts is the UI package's only path module.
- Drop url and dashmap; drop tokio-util codec feature; rust-version 1.95.
- Refresh Cargo, npm and NuGet under the 7-day cooldown; npm audit clean.
- Fix Windows-only memory_start_lifetime test (Unix sleep).
@MelbourneDeveloper MelbourneDeveloper changed the title Live scheduler: deliver a ready burst behind a busy consumer; add release-review skill Centralize path handling in lspkit::path; fix scheduler burst; trim and upgrade deps Nov 26, 2026

This branch has not been deployed

No deployments
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