rename, relocate, and simplify the task queue (#106)

This commit is contained in:
Josh Thomas 2025-04-21 21:59:00 -05:00 committed by GitHub
parent 3fb6fa995d
commit c2e27d43c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 229 additions and 333 deletions

View file

@ -1,8 +1,8 @@
use crate::documents::Store;
use crate::queue::Queue;
use crate::workspace::get_project_path;
use anyhow::Result;
use djls_project::DjangoProject;
use djls_worker::Worker;
use std::sync::Arc;
use tokio::sync::RwLock;
use tower_lsp_server::jsonrpc::Result as LspResult;
@ -16,7 +16,7 @@ pub struct DjangoLanguageServer {
client: Client,
project: Arc<RwLock<Option<DjangoProject>>>,
documents: Arc<RwLock<Store>>,
worker: Worker,
queue: Queue,
}
impl DjangoLanguageServer {
@ -25,7 +25,7 @@ impl DjangoLanguageServer {
client,
project: Arc::new(RwLock::new(None)),
documents: Arc::new(RwLock::new(Store::new())),
worker: Worker::new(),
queue: Queue::new(),
}
}