mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-29 13:25:22 +00:00
drop environment abstraction layer over Python interpreter (#5)
This commit is contained in:
parent
39523d1f89
commit
b7a1de98dd
4 changed files with 17 additions and 66 deletions
|
@ -3,12 +3,12 @@ use tower_lsp::jsonrpc::Result as LspResult;
|
|||
use tower_lsp::lsp_types::*;
|
||||
use tower_lsp::{Client, LanguageServer, LspService, Server};
|
||||
|
||||
use djls_python::PythonEnvironment;
|
||||
use djls_python::Python;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Backend {
|
||||
client: Client,
|
||||
python: PythonEnvironment,
|
||||
python: Python,
|
||||
}
|
||||
|
||||
#[tower_lsp::async_trait]
|
||||
|
@ -46,7 +46,7 @@ impl LanguageServer for Backend {
|
|||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let python = PythonEnvironment::initialize()?;
|
||||
let python = Python::initialize()?;
|
||||
|
||||
let stdin = tokio::io::stdin();
|
||||
let stdout = tokio::io::stdout();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue