small change

This commit is contained in:
2024-06-06 10:12:41 +02:00
parent a11ca49c35
commit 5d27d5b4a9
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -14,4 +14,5 @@ tokio = { version = "1.38.0", features = ["full"] }
tokio-macros = "2.3.0" tokio-macros = "2.3.0"
rand = "0.8.5" rand = "0.8.5"
serde_json = "1.0" serde_json = "1.0"
serde = "1.0.203"
lsp-types = "0.97.0" lsp-types = "0.97.0"
+4
View File
@@ -1,12 +1,16 @@
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
use regex::Regex; use regex::Regex;
use serde::{Deserialize, Serialize};
use serde_json::{self, Value}; use serde_json::{self, Value};
use std::{ use std::{
fs::{self, File}, fs::{self, File},
io::{stdin, Read, Write}, io::{stdin, Read, Write},
path::Path, path::Path,
}; };
pub fn run_method<F>(func: F) {}
pub fn run_lsp_server() { pub fn run_lsp_server() {
if Path::new("/Users/klestiselimaj/work/wyst/log.txt").exists() { if Path::new("/Users/klestiselimaj/work/wyst/log.txt").exists() {
fs::remove_file("/Users/klestiselimaj/work/wyst/log.txt"); fs::remove_file("/Users/klestiselimaj/work/wyst/log.txt");