multi_buffer: Remove redundant buffer id field (#43459)

It is easy for us to get the two fields out of sync causing weird
problems, there is no reason to have both here so.

Release Notes:

- N/A *or* Added/Fixed/Improved ...

Co-authored by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Lukas Wirth
2025-11-25 17:13:16 +01:00
committed by GitHub
parent ab80ef1845
commit fafe1afa61
39 changed files with 378 additions and 306 deletions
+1 -1
View File
@@ -2746,7 +2746,7 @@ impl LocalLspStore {
let actions = lsp_store
.update(cx, move |this, cx| {
let request = GetCodeActions {
range: text::Anchor::MIN..text::Anchor::MAX,
range: text::Anchor::min_max_range_for_buffer(buffer.read(cx).remote_id()),
kinds: Some(code_action_kinds),
};
let server = LanguageServerToQuery::Other(language_server_id);
+2 -1
View File
@@ -4002,7 +4002,8 @@ impl Project {
) -> Task<anyhow::Result<Vec<InlayHint>>> {
let snapshot = buffer_handle.read(cx).snapshot();
let captures = snapshot.debug_variables_query(Anchor::MIN..range.end);
let captures =
snapshot.debug_variables_query(Anchor::min_for_buffer(snapshot.remote_id())..range.end);
let row = snapshot
.summary_for_anchor::<text::PointUtf16>(&range.end)