drop environment abstraction layer over Python interpreter (#5)

This commit is contained in:
Josh Thomas 2024-12-06 09:45:36 -06:00 committed by GitHub
parent 39523d1f89
commit b7a1de98dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 66 deletions

View file

@ -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();