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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user