From 5d27d5b4a94ef62d5dd587f72b0b44938930ed9d Mon Sep 17 00:00:00 2001 From: Leo dev Date: Thu, 6 Jun 2024 10:12:41 +0200 Subject: [PATCH] small change --- Cargo.toml | 1 + src/lsp.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index fa28052..40518b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,4 +14,5 @@ tokio = { version = "1.38.0", features = ["full"] } tokio-macros = "2.3.0" rand = "0.8.5" serde_json = "1.0" +serde = "1.0.203" lsp-types = "0.97.0" \ No newline at end of file diff --git a/src/lsp.rs b/src/lsp.rs index b916594..64f9e44 100644 --- a/src/lsp.rs +++ b/src/lsp.rs @@ -1,12 +1,16 @@ use once_cell::sync::Lazy; use regex::Regex; +use serde::{Deserialize, Serialize}; use serde_json::{self, Value}; + use std::{ fs::{self, File}, io::{stdin, Read, Write}, path::Path, }; +pub fn run_method(func: F) {} + pub fn run_lsp_server() { if Path::new("/Users/klestiselimaj/work/wyst/log.txt").exists() { fs::remove_file("/Users/klestiselimaj/work/wyst/log.txt");