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:
@@ -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);
|
||||
|
||||
@@ -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