mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-14 22:35:23 +00:00
rename, relocate, and simplify the task queue (#106)
This commit is contained in:
parent
3fb6fa995d
commit
c2e27d43c3
10 changed files with 229 additions and 333 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue