Unnamed repository; edit this file 'description' to name the repository.
hashability
bendn 4 months ago
parent 27365ba · commit fffeb3c
-rw-r--r--helix-lsp-types/src/lib.rs10
-rw-r--r--helix-lsp-types/src/workspace_diagnostic.rs2
2 files changed, 6 insertions, 6 deletions
diff --git a/helix-lsp-types/src/lib.rs b/helix-lsp-types/src/lib.rs
index fa912f56..30537574 100644
--- a/helix-lsp-types/src/lib.rs
+++ b/helix-lsp-types/src/lib.rs
@@ -2564,7 +2564,7 @@ impl PublishDiagnosticsParams {
}
}
-#[derive(Debug, Eq, PartialEq, Deserialize, Serialize, Clone)]
+#[derive(Debug, Eq, PartialEq, Deserialize, Serialize, Clone, Hash)]
#[serde(untagged)]
pub enum Documentation {
String(String),
@@ -2581,14 +2581,14 @@ pub enum Documentation {
/// <pre><code>```${language}
/// ${value}
/// ```</code></pre>
-#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
+#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize, Hash)]
#[serde(untagged)]
pub enum MarkedString {
String(String),
LanguageString(LanguageString),
}
-#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
+#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize, Hash)]
pub struct LanguageString {
pub language: String,
pub value: String,
@@ -2707,7 +2707,7 @@ pub struct ApplyWorkspaceEditResponse {
///
/// Please note that `MarkupKinds` must not start with a `$`. This kinds
/// are reserved for internal usage.
-#[derive(Debug, Eq, PartialEq, Deserialize, Serialize, Clone)]
+#[derive(Debug, Eq, PartialEq, Deserialize, Serialize, Clone, Hash)]
#[serde(rename_all = "lowercase")]
pub enum MarkupKind {
/// Plain text is supported as a content format
@@ -2739,7 +2739,7 @@ pub enum MarkupKind {
///
/// Please *Note* that clients might sanitize the return markdown. A client could decide to
/// remove HTML from the markdown to avoid script execution.
-#[derive(Debug, Eq, PartialEq, Deserialize, Serialize, Clone)]
+#[derive(Debug, Eq, PartialEq, Deserialize, Serialize, Clone, Hash)]
pub struct MarkupContent {
pub kind: MarkupKind,
pub value: String,
diff --git a/helix-lsp-types/src/workspace_diagnostic.rs b/helix-lsp-types/src/workspace_diagnostic.rs
index 485dcc2b..c24690f0 100644
--- a/helix-lsp-types/src/workspace_diagnostic.rs
+++ b/helix-lsp-types/src/workspace_diagnostic.rs
@@ -37,7 +37,7 @@ pub struct PreviousResultId {
/// Parameters of the workspace diagnostic request.
///
/// @since 3.17.0
-#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
+#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct WorkspaceDiagnosticParams {
/// The additional identifier provided during registration.