Skip to content

Commit

Permalink
Repair textDocument/build request
Browse files Browse the repository at this point in the history
  • Loading branch information
pfoerster committed Nov 20, 2022
1 parent affa0c1 commit 15978f0
Show file tree
Hide file tree
Showing 8 changed files with 416 additions and 353 deletions.
76 changes: 66 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ encoding_rs = "0.8.31"
encoding_rs_io = "0.1.7"
fern = "0.6.1"
flate2 = "1.0.24"
flume = "0.10.14"
fuzzy-matcher = { version = "0.3.7" }
human_name = { version = "2.0.1", default-features = false }
isocountry = "0.3.2"
Expand All @@ -71,7 +72,6 @@ titlecase = "2.2.1"
typed-builder = "0.11.0"
unicode-normalization = "0.1.22"
url = { version = "2.3.1", features = ["serde"] }
uuid = { version = "1.2.2", features = ["v4"] }

[dependencies.salsa]
git = "https://github.com/salsa-rs/salsa"
Expand Down
5 changes: 5 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ impl LspClient {
Ok(serde_json::from_value(result)?)
}

pub fn send_response(&self, response: lsp_server::Response) -> Result<()> {
self.raw.sender.send(response.into())?;
Ok(())
}

pub fn recv_response(&self, response: lsp_server::Response) -> Result<()> {
let (_, tx) = self
.raw
Expand Down
3 changes: 1 addition & 2 deletions src/features.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod build;
pub mod building;
mod completion;
mod cursor;
mod definition;
Expand All @@ -22,7 +22,6 @@ use lsp_types::Url;
use crate::{Document, Workspace};

pub use self::{
build::{BuildEngine, BuildParams, BuildResult, BuildStatus},
completion::{complete, CompletionItemData, COMPLETION_LIMIT},
definition::goto_definition,
execute_command::execute_command,
Expand Down
Loading

0 comments on commit 15978f0

Please sign in to comment.