This commit is contained in:
Antonio Scandurra 2023-09-05 12:26:48 +02:00
parent 8dbc0fe033
commit d4cff68475
6 changed files with 308 additions and 259 deletions

View file

@ -2,12 +2,12 @@ use crate::{embedding::EmbeddingProvider, parsing::Document, JobHandle};
use gpui::executor::Background;
use parking_lot::Mutex;
use smol::channel;
use std::{mem, ops::Range, path::PathBuf, sync::Arc, time::SystemTime};
use std::{mem, ops::Range, path::Path, sync::Arc, time::SystemTime};
#[derive(Clone)]
pub struct FileToEmbed {
pub worktree_id: i64,
pub path: PathBuf,
pub path: Arc<Path>,
pub mtime: SystemTime,
pub documents: Vec<Document>,
pub job_handle: JobHandle,