Commit 37f78f3
authored
fix(lsp): correct inlay hints after lock file or manifest changes (#53)
This fixes two related bugs where inlay hints incorrectly showed all
dependencies as up-to-date (green checkmarks) after cargo update or
applying code actions.
Root cause: cached_versions (latest from registry) were being
overwritten with resolved_versions (from lock file), causing the
comparison logic to always return true.
Changes:
- Remove incorrect update_cached_versions call in handle_lockfile_change
- Remove for loop merging resolved_versions into cached_versions in handle_document_change
- Add two-tier check for dependencies not in lock file (fallback to version requirement check)
- Update dependencies (aws-lc-rs, colored, cc, etc.)
- Update resolver to version 3
Fixes issue where dev-dependencies in workspace members showed
incorrect status when missing from Cargo.lock.1 parent 7f628eb commit 37f78f3
File tree
6 files changed
+306
-86
lines changed- crates
- deps-core/src
- deps-lsp/src
- document
6 files changed
+306
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
10 | 24 | | |
11 | 25 | | |
12 | 26 | | |
| |||
0 commit comments