Removed unnecessary package
This commit is contained in:
@@ -19,4 +19,3 @@ cargo_metadata = "0.23.1"
|
||||
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
lsp-types = "0.95"
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user