Unnamed repository; edit this file 'description' to name the repository.
matching brace
bendn 8 weeks ago
parent ecb6f7b · commit 4b2055a
-rw-r--r--helix-lsp-types/src/request.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/helix-lsp-types/src/request.rs b/helix-lsp-types/src/request.rs
index e7493862..eb11d6fb 100644
--- a/helix-lsp-types/src/request.rs
+++ b/helix-lsp-types/src/request.rs
@@ -210,6 +210,9 @@ macro_rules! lsp_request {
("experimental/onEnter") => {
$crate::request::OnEnter
};
+ ("experimental/matchingBrace") => {
+ $crate::request::MatchingBrace
+ };
}
/// The initialize request is sent as the first request from the client to the server.
@@ -979,6 +982,20 @@ impl Request for OnEnter {
type Result = Option<Vec<SnippetTextEdit>>;
const METHOD: &'static str = "experimental/onEnter";
}
+#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
+#[serde(rename_all = "camelCase")]
+pub struct MatchingBraceParams {
+ pub text_document: TextDocumentIdentifier,
+ /// Position for each cursor
+ pub positions: Vec<Position>,
+}
+#[derive(Debug)]
+pub enum MatchingBrace {}
+impl Request for MatchingBrace {
+ type Params = MatchingBraceParams;
+ const METHOD: &'static str = "experimental/matchingBrace";
+ type Result = Option<Vec<Position>>;
+}
#[cfg(test)]
mod test {