Overhaul inline assistant (#12846)

This pull request introduces a new diff mechanism that helps users
understand exactly which lines were changed by the LLM.

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2024-06-11 12:39:45 +02:00 committed by GitHub
parent 3722275cfa
commit 98659eabf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 824 additions and 176 deletions

View file

@ -797,6 +797,10 @@ impl Buffer {
.set_language_registry(language_registry);
}
pub fn language_registry(&self) -> Option<Arc<LanguageRegistry>> {
self.syntax_map.lock().language_registry()
}
/// Assign the buffer a new [Capability].
pub fn set_capability(&mut self, capability: Capability, cx: &mut ModelContext<Self>) {
self.capability = capability;