ZIm/crates/assistant/src
Michael Sloan a94afbc062
Switch from Arc/RwLock to Rc/RefCell for CodeContextMenu (#22035)
`CodeContextMenu` is always accessed on one thread, so only `Rc`s and
`Rc<RefCell<_>>` are needed. There should be tiny performance benefits
from this. The main benefit of this is that when seeing code accessing a
`RwLock` it would be reasonable to wonder whether it will block. The
only potential downside is the potential for panics due to overlapping
borrows of the RefCells. I think this is an acceptable risk because most
errors of this nature will be local or will be caught by clippy via the
check for holding a RefCell reference over an `await`.

Release Notes:

- N/A
2024-12-16 01:50:21 -07:00
..
context gpui: Don't export named Context from prelude (#21869) 2024-12-11 13:21:40 -05:00
slash_command Improve StringMatchCandidate::new interface (#22011) 2024-12-14 13:35:36 -07:00
assistant.rs Make fetch slash command visible in the command selector (#21302) 2024-11-28 18:26:59 -03:00
assistant_panel.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
assistant_settings.rs Remove assistant hints (#21171) 2024-11-25 17:19:33 +01:00
context.rs assistant2: Restructure storage of tool uses and results (#21194) 2024-11-25 21:53:27 -05:00
context_store.rs Improve StringMatchCandidate::new interface (#22011) 2024-12-14 13:35:36 -07:00
inline_assistant.rs Switch from Arc/RwLock to Rc/RefCell for CodeContextMenu (#22035) 2024-12-16 01:50:21 -07:00
patch.rs Fix more failure cases of assistant edits (#19653) 2024-10-25 14:30:34 -07:00
prompt_library.rs Improve StringMatchCandidate::new interface (#22011) 2024-12-14 13:35:36 -07:00
prompts.rs logs: Reduce log noise by using more debug logs (#20498) 2024-11-11 15:11:20 +01:00
slash_command.rs Switch from Arc/RwLock to Rc/RefCell for CodeContextMenu (#22035) 2024-12-16 01:50:21 -07:00
slash_command_picker.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
slash_command_settings.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
slash_command_working_set.rs assistant: Fix completions for slash commands provided by context servers (#20423) 2024-11-08 11:35:39 -05:00
streaming_diff.rs Reduce memory footprint for inline transformations (#20296) 2024-11-06 15:07:16 +01:00
terminal_inline_assistant.rs language_model_selector: Don't recreate the Picker view each render (#21939) 2024-12-12 17:08:48 -05:00