diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:41 +0000 |
commit | 4f9fe856a25ab29345b90e7725509e9ee38a37be (patch) | |
tree | e4ffd8a9374cae7b21f7cbfb352927e0e074aff6 /vendor/lsp-types/src/workspace_folders.rs | |
parent | Adding upstream version 1.68.2+dfsg1. (diff) | |
download | rustc-5cd5bd4daf55da04d2c8e7c06c3067a027cfbfc2.tar.xz rustc-5cd5bd4daf55da04d2c8e7c06c3067a027cfbfc2.zip |
Adding upstream version 1.69.0+dfsg1.upstream/1.69.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | vendor/lsp-types/src/workspace_folders.rs | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/vendor/lsp-types/src/workspace_folders.rs b/vendor/lsp-types/src/workspace_folders.rs index ae30d3a0b..677e6f696 100644 --- a/vendor/lsp-types/src/workspace_folders.rs +++ b/vendor/lsp-types/src/workspace_folders.rs @@ -1,49 +1,49 @@ -use serde::{Deserialize, Serialize}; -use url::Url; - -use crate::OneOf; - -#[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)] -#[serde(rename_all = "camelCase")] -pub struct WorkspaceFoldersServerCapabilities { - /// The server has support for workspace folders - #[serde(skip_serializing_if = "Option::is_none")] - pub supported: Option<bool>, - - /// Whether the server wants to receive workspace folder - /// change notifications. - /// - /// If a string is provided, the string is treated as an ID - /// under which the notification is registered on the client - /// side. The ID can be used to unregister for these events - /// using the `client/unregisterCapability` request. - #[serde(skip_serializing_if = "Option::is_none")] - pub change_notifications: Option<OneOf<bool, String>>, -} - -#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)] -#[serde(rename_all = "camelCase")] -pub struct WorkspaceFolder { - /// The associated URI for this workspace folder. - pub uri: Url, - /// The name of the workspace folder. Defaults to the uri's basename. - pub name: String, -} - -#[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)] -#[serde(rename_all = "camelCase")] -pub struct DidChangeWorkspaceFoldersParams { - /// The actual workspace folder change event. - pub event: WorkspaceFoldersChangeEvent, -} - -/// The workspace folder change event. -#[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)] -#[serde(rename_all = "camelCase")] -pub struct WorkspaceFoldersChangeEvent { - /// The array of added workspace folders - pub added: Vec<WorkspaceFolder>, - - /// The array of the removed workspace folders - pub removed: Vec<WorkspaceFolder>, -} +use serde::{Deserialize, Serialize};
+use url::Url;
+
+use crate::OneOf;
+
+#[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)]
+#[serde(rename_all = "camelCase")]
+pub struct WorkspaceFoldersServerCapabilities {
+ /// The server has support for workspace folders
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub supported: Option<bool>,
+
+ /// Whether the server wants to receive workspace folder
+ /// change notifications.
+ ///
+ /// If a string is provided, the string is treated as an ID
+ /// under which the notification is registered on the client
+ /// side. The ID can be used to unregister for these events
+ /// using the `client/unregisterCapability` request.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub change_notifications: Option<OneOf<bool, String>>,
+}
+
+#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Clone, Deserialize, Serialize)]
+#[serde(rename_all = "camelCase")]
+pub struct WorkspaceFolder {
+ /// The associated URI for this workspace folder.
+ pub uri: Url,
+ /// The name of the workspace folder. Defaults to the uri's basename.
+ pub name: String,
+}
+
+#[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)]
+#[serde(rename_all = "camelCase")]
+pub struct DidChangeWorkspaceFoldersParams {
+ /// The actual workspace folder change event.
+ pub event: WorkspaceFoldersChangeEvent,
+}
+
+/// The workspace folder change event.
+#[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)]
+#[serde(rename_all = "camelCase")]
+pub struct WorkspaceFoldersChangeEvent {
+ /// The array of added workspace folders
+ pub added: Vec<WorkspaceFolder>,
+
+ /// The array of the removed workspace folders
+ pub removed: Vec<WorkspaceFolder>,
+}
|