Store pulled diagnostics' result_ids more persistently (#32403)
Follow-up of https://github.com/zed-industries/zed/pull/19230 `BufferId` can change between file reopens: e.g. open the buffer, close it, go back in history to reopen it — the 2nd one will have a different `BufferId`, but the same `result_ids` semantically. Release Notes: - N/A
This commit is contained in:
parent
de16f2bbe6
commit
fa54fa80d0
3 changed files with 30 additions and 19 deletions
|
@ -21941,7 +21941,7 @@ async fn test_pulling_diagnostics(cx: &mut TestAppContext) {
|
|||
.expect("created a singleton buffer")
|
||||
.read(cx)
|
||||
.remote_id();
|
||||
let buffer_result_id = project.lsp_store().read(cx).result_id(buffer_id);
|
||||
let buffer_result_id = project.lsp_store().read(cx).result_id(buffer_id, cx);
|
||||
assert_eq!(expected, buffer_result_id);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue