-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
467 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ members = [ | |
] | ||
|
||
[dependencies] | ||
aovec = "1.1" | ||
byteorder = "1.3" | ||
bytes = "0.5" | ||
chashmap = "2.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ pub mod link; | |
pub mod protocol; | ||
pub mod server; | ||
pub mod syntax; | ||
pub mod test; | ||
pub mod tex; | ||
pub mod workspace; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
use crate::{jsonrpc::client::Result, protocol::*}; | ||
use futures_boxed::boxed; | ||
use jsonrpc_derive::{jsonrpc_client, jsonrpc_method}; | ||
|
||
#[jsonrpc_client(TestLatexLspClient)] | ||
pub trait TestLspClient { | ||
#[jsonrpc_method("initialize", kind = "request")] | ||
#[boxed] | ||
async fn initialize(&self, params: InitializeParams) -> Result<InitializeResult>; | ||
|
||
#[jsonrpc_method("initialized", kind = "notification")] | ||
#[boxed] | ||
async fn initialized(&self, params: InitializedParams); | ||
|
||
#[jsonrpc_method("shutdown", kind = "request")] | ||
#[boxed] | ||
async fn shutdown(&self, params: ()) -> Result<()>; | ||
|
||
#[jsonrpc_method("exit", kind = "notification")] | ||
#[boxed] | ||
async fn exit(&self, params: ()); | ||
|
||
#[jsonrpc_method("textDocument/didOpen", kind = "notification")] | ||
#[boxed] | ||
async fn did_open(&self, params: DidOpenTextDocumentParams); | ||
|
||
#[jsonrpc_method("textDocument/didChange", kind = "notification")] | ||
#[boxed] | ||
async fn did_change(&self, params: DidChangeTextDocumentParams); | ||
|
||
#[jsonrpc_method("workspace/didChangeConfiguration", kind = "notification")] | ||
#[boxed] | ||
async fn did_change_configuration(&self, params: DidChangeConfigurationParams); | ||
|
||
#[jsonrpc_method("textDocument/documentLink", kind = "request")] | ||
#[boxed] | ||
async fn document_link(&self, params: DocumentLinkParams) -> Result<Vec<DocumentLink>>; | ||
} |
Oops, something went wrong.