oops
This commit is contained in:
+1
-4
@@ -8,7 +8,7 @@ use regex::Regex;
|
|||||||
use serde_json::{self, json, Value};
|
use serde_json::{self, json, Value};
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
fs::{self, File},
|
fs,
|
||||||
io::{stdin, stdout, Read, Write},
|
io::{stdin, stdout, Read, Write},
|
||||||
path::Path,
|
path::Path,
|
||||||
};
|
};
|
||||||
@@ -16,7 +16,6 @@ use std::{
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Server {
|
pub struct Server {
|
||||||
documents: HashMap<String, String>,
|
documents: HashMap<String, String>,
|
||||||
file: File,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LspServer for Server {
|
impl LspServer for Server {
|
||||||
@@ -73,9 +72,7 @@ pub fn run_lsp_server() {
|
|||||||
let mut reader = stdin();
|
let mut reader = stdin();
|
||||||
let mut server = Server {
|
let mut server = Server {
|
||||||
documents: HashMap::new(),
|
documents: HashMap::new(),
|
||||||
file: File::create("/home/leo/work/wyst/log.txt").expect("err_log"),
|
|
||||||
};
|
};
|
||||||
writeln!(server.file, "It's running!").unwrap();
|
|
||||||
loop {
|
loop {
|
||||||
let mut input = String::new();
|
let mut input = String::new();
|
||||||
if reader.read_line(&mut input).is_err() {
|
if reader.read_line(&mut input).is_err() {
|
||||||
|
|||||||
Reference in New Issue
Block a user