Skip to content

Commit c061698

Browse files
authored
project: Fetch latest lsp data in deduplicate_range_based_lsp_requests (#41971)
Fixes ZED-2MK Release Notes: - Fixed a panic in inlay hints
1 parent b4f7af0 commit c061698

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/project/src/lsp_store.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12349,10 +12349,7 @@ impl LspStore {
1234912349
.update(cx, |buffer, _| buffer.wait_for_version(version))?
1235012350
.await?;
1235112351
lsp_store.update(cx, |lsp_store, cx| {
12352-
let lsp_data = lsp_store
12353-
.lsp_data
12354-
.entry(buffer_id)
12355-
.or_insert_with(|| BufferLspData::new(&buffer, cx));
12352+
let lsp_data = lsp_store.latest_lsp_data(&buffer, cx);
1235612353
let chunks_queried_for = lsp_data
1235712354
.inlay_hints
1235812355
.applicable_chunks(&[range])

0 commit comments

Comments
 (0)