assistant2: Make ContextStore::insert_*
methods private (#22989)
This PR makes the `insert_*` methods on the `ContextStore` private, to reduce confusion with the public `add_*` methods. Release Notes: - N/A
This commit is contained in:
parent
1fcc9b36ba
commit
40ecc38dd2
3 changed files with 38 additions and 35 deletions
|
@ -204,9 +204,7 @@ impl PickerDelegate for FetchContextPickerDelegate {
|
|||
this.delegate
|
||||
.context_store
|
||||
.update(cx, |context_store, _cx| {
|
||||
if context_store.includes_url(&url).is_none() {
|
||||
context_store.insert_fetched_url(url, text);
|
||||
}
|
||||
context_store.add_fetched_url(url, text);
|
||||
})?;
|
||||
|
||||
match confirm_behavior {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue