Removed unnecessary package

This commit is contained in:
2026-05-24 07:03:46 +02:00
parent 831fa544fc
commit 64c612fe3c
4 changed files with 8 additions and 24 deletions
+2 -3
View File
@@ -7,10 +7,9 @@ use std::fs;
use std::path::{Component, PathBuf};
use std::sync::Arc;
use lsp_types::request::GotoDefinition;
use tokio::sync::Mutex;
use tower_lsp::jsonrpc::Result;
use tower_lsp::lsp_types::*;
use tower_lsp::lsp_types::{self, *};
use tower_lsp::{Client, LanguageServer, LspService, Server};
use crate::builder::MistDiagnostic;
@@ -240,7 +239,7 @@ impl LanguageServer for Backend {
.rust_analyzer
.lock()
.await
.request::<GotoDefinition>(lsp_types::GotoDefinitionParams {
.request::<request::GotoDefinition>(lsp_types::GotoDefinitionParams {
text_document_position_params: lsp_types::TextDocumentPositionParams {
position: lsp_types::Position {
line: line as u32,
+5 -5
View File
@@ -1,16 +1,16 @@
use std::{collections::HashMap, path::PathBuf, process::Stdio, sync::Arc};
use lsp_types::{
ClientCapabilities, InitializeParams, InitializedParams, Url, WorkspaceFolder,
notification::{Initialized, Notification},
request::{self, Request},
};
use serde::{Deserialize, Serialize};
use serde_json::{Value, json};
use tokio::{
io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader},
sync::{Mutex, mpsc::Sender},
};
use tower_lsp::lsp_types::{
self, ClientCapabilities, InitializeParams, InitializedParams, Url, WorkspaceFolder,
notification::{Initialized, Notification},
request::{self, Request},
};
#[derive(Deserialize)]
pub struct JsonRpcResponse<T> {