mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-08-04 18:18:14 +00:00
things
This commit is contained in:
parent
414808e502
commit
ed2718e3c6
2 changed files with 10 additions and 6 deletions
|
@ -1,12 +1,15 @@
|
||||||
use std::future::Future;
|
use std::future::Future;
|
||||||
use std::sync::{
|
use std::sync::atomic::AtomicU8;
|
||||||
atomic::{AtomicU8, Ordering},
|
use std::sync::atomic::Ordering;
|
||||||
Arc, OnceLock,
|
use std::sync::Arc;
|
||||||
};
|
use std::sync::OnceLock;
|
||||||
|
|
||||||
use tower_lsp_server::jsonrpc::Error;
|
use tower_lsp_server::jsonrpc::Error;
|
||||||
use tower_lsp_server::lsp_types::notification::Notification;
|
use tower_lsp_server::lsp_types::notification::Notification;
|
||||||
use tower_lsp_server::lsp_types::{Diagnostic, MessageType, NumberOrString, Uri};
|
use tower_lsp_server::lsp_types::Diagnostic;
|
||||||
|
use tower_lsp_server::lsp_types::MessageType;
|
||||||
|
use tower_lsp_server::lsp_types::NumberOrString;
|
||||||
|
use tower_lsp_server::lsp_types::Uri;
|
||||||
use tower_lsp_server::Client;
|
use tower_lsp_server::Client;
|
||||||
|
|
||||||
pub static CLIENT: OnceLock<Arc<Client>> = OnceLock::new();
|
pub static CLIENT: OnceLock<Arc<Client>> = OnceLock::new();
|
||||||
|
|
|
@ -26,7 +26,8 @@ pub fn run() -> Result<()> {
|
||||||
client::init_client(client);
|
client::init_client(client);
|
||||||
// Then create the server instance
|
// Then create the server instance
|
||||||
DjangoLanguageServer::new()
|
DjangoLanguageServer::new()
|
||||||
}).finish();
|
})
|
||||||
|
.finish();
|
||||||
|
|
||||||
Server::new(stdin, stdout, socket).serve(service).await;
|
Server::new(stdin, stdout, socket).serve(service).await;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue