Repository navigation
Centralize path handling in lspkit::path; fix scheduler burst; trim and upgrade deps - #66
Open
MelbourneDeveloper wants to merge 5 commits into
Open
MelbourneDeveloper wants to merge 5 commits into
MelbourneDeveloper wants to merge 5 commits into
Conversation
…clean main commit
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… 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).
This branch has not been deployed
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.
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
urlcrate, but the server builds them with its own URI code. The two disagreed:/home/me/Projects (old)/a+b@c.pycame out asProjects%20(old)/a+b@c.pyfrom the profiler andProjects%20%28old%29/a%2Bb%40c.pyfrom the server.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::uriand the profiler'spathsmodule now live inlspkit::path, along with the watcher's canonicalize and rebase.lspkit::pathis now the only code that converts, resolves, normalizes, compares or rebases paths.lspkit_server::uri,path_to_uri,uri_to_pathanddocument_uri_from_pathremain as re-exports.lsp_profiler::pathsandlsp_profiler::diagnostics::file_uriare removed (breaking).lspkit, so the layers becomelspkit(L0) →lspkit-server/lsp-profiler(L1) →lsp-profiler-dotnet(L2).release.ymland [REL-ORDER] is nowlspkit,lsp-profiler,lsp-profiler-dotnet,lspkit-server.TypeScript.
src/paths.ts(formerlyeditor-path-key.ts) is the UI library's only path module ([PROF-UI-PATHS]).pathRules,looksLikePathand the DAP assertion's hand-rolled normalizer moved into it; the normalizer becamecomparablePath, which no longer lowercases case-sensitive POSIX paths.Rule file.
.claude/rules/path-handling.mdloads the rule into every agent session.Dependencies ([DEPS-MINIMAL], [DEPS-MSRV]):
url, and with itidnaplus about 15 ICU crates.dashmap.Vfsnow uses aRwLock<HashMap>.ParseCacheuses oneMutexover its map and eviction order, so the two can no longer disagree between racing parsers.tokio-utilcodecfeature.rust-versionis now 1.95, the highest MSRV in the lockfile (sysinfo0.39.6).notify9,salsa0.28.6 andoxlint1.95.TraceEvent3.2.6 → 4.0.0,NETCore.Client0.2.750501,Test.Sdk18.12.0.npm auditreports 0 vulnerabilities in both packages.oxlint1.94 makesinit-declarationscontradictunicorn/no-useless-undefined, soinit-declarationsis off, with the reason written in.oxlintrc.json.Other fixes:
Workspacelocks recover from poisoning instead of silently doing nothing; containment and equality go throughlspkit::path.memory_start_lifetime_testsspawned Unixsleep, which fails on Windows. It now uses an idle PowerShell process there.lsp-profiler-dotnetpass.How Do The Automated Tests Prove It Works?
lsp-profiler::diagnostics::tests::diagnostic_uri_is_the_servers_uri_for_the_same_filefailed before the fix on both platforms:left: "file:///home/me/Projects%20(old)/a+b@c.py".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_burstfails without the fix ("the ready burst survives the end of the events").events_absorbed_by_a_ready_burst_are_delivered_when_the_events_endpins late events that join a ready burst.The full Linux
make cisequence (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 lintis clean,test:debugpasses 124 tests, andtest:pathspasses 3.