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:
Marshall Bowers 2025-01-10 17:50:33 -05:00 committed by GitHub
parent 1fcc9b36ba
commit 40ecc38dd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 35 deletions

View file

@ -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 {