Use new multibuffer excerpts in find-all-references and friends (#27876)
Release Notes: - N/A --------- Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
This commit is contained in:
parent
e7290df02b
commit
9bc4697a33
7 changed files with 54 additions and 139 deletions
|
@ -135,7 +135,7 @@ impl AssistantDiff {
|
|||
continue;
|
||||
};
|
||||
|
||||
let path_key = PathKey::namespaced("", file.full_path(cx).into());
|
||||
let path_key = PathKey::namespaced(0, file.full_path(cx).into());
|
||||
paths_to_delete.remove(&path_key);
|
||||
|
||||
let snapshot = buffer.read(cx).snapshot();
|
||||
|
@ -152,7 +152,7 @@ impl AssistantDiff {
|
|||
let (was_empty, is_excerpt_newly_added) =
|
||||
self.multibuffer.update(cx, |multibuffer, cx| {
|
||||
let was_empty = multibuffer.is_empty();
|
||||
let is_excerpt_newly_added = multibuffer.set_excerpts_for_path(
|
||||
let (_, is_excerpt_newly_added) = multibuffer.set_excerpts_for_path(
|
||||
path_key.clone(),
|
||||
buffer.clone(),
|
||||
diff_hunk_ranges,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue