zeta: Send up diagnostics with prediction requests (#24384)
This PR makes it so we send up the diagnostic groups as additional data with the edit prediction request. We're not yet making use of them, but we are recording them so we can use them later (e.g., to train the model). Release Notes: - N/A --------- Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
13089d7ec6
commit
09967ac3d0
16 changed files with 145 additions and 31 deletions
|
@ -4648,7 +4648,13 @@ impl Editor {
|
|||
}
|
||||
|
||||
self.update_visible_inline_completion(window, cx);
|
||||
provider.refresh(buffer, cursor_buffer_position, debounce, cx);
|
||||
provider.refresh(
|
||||
self.project.clone(),
|
||||
buffer,
|
||||
cursor_buffer_position,
|
||||
debounce,
|
||||
cx,
|
||||
);
|
||||
Some(())
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ use indoc::indoc;
|
|||
use inline_completion::InlineCompletionProvider;
|
||||
use language::{Language, LanguageConfig};
|
||||
use multi_buffer::{Anchor, MultiBufferSnapshot, ToPoint};
|
||||
use project::Project;
|
||||
use std::{num::NonZeroU32, ops::Range, sync::Arc};
|
||||
use text::{Point, ToOffset};
|
||||
|
||||
|
@ -394,6 +395,7 @@ impl InlineCompletionProvider for FakeInlineCompletionProvider {
|
|||
|
||||
fn refresh(
|
||||
&mut self,
|
||||
_project: Option<Entity<Project>>,
|
||||
_buffer: gpui::Entity<language::Buffer>,
|
||||
_cursor_position: language::Anchor,
|
||||
_debounce: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue