diff --git a/generator/lsp.json b/generator/lsp.json index 9c93d21..6825e9d 100644 --- a/generator/lsp.json +++ b/generator/lsp.json @@ -6178,6 +6178,17 @@ "name": "WorkspaceEdit" }, "documentation": "The edits to apply." + }, + { + "name": "metadata", + "type": { + "kind": "reference", + "name": "WorkspaceEditMetadata" + }, + "optional": true, + "documentation": "Additional data about the edit.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true } ], "documentation": "The parameters passed via an apply workspace edit request." @@ -6865,12 +6876,16 @@ { "kind": "reference", "name": "AnnotatedTextEdit" + }, + { + "kind": "reference", + "name": "SnippetTextEdit" } ] } }, - "documentation": "The edits to be applied.\n\n@since 3.16.0 - support for AnnotatedTextEdit. This is guarded using a\nclient capability.", - "since": "3.16.0 - support for AnnotatedTextEdit. This is guarded using a\nclient capability." + "documentation": "The edits to be applied.\n\n@since 3.16.0 - support for AnnotatedTextEdit. This is guarded using a\nclient capability.\n\n@since 3.18.0 - support for SnippetTextEdit. This is guarded using a\nclient capability.", + "since": "3.18.0 - support for SnippetTextEdit. This is guarded using a\nclient capability." } ], "documentation": "Describes textual changes on a text document. A TextDocumentEdit describes all changes\non a document version Si and after they are applied move the document to version Si+1.\nSo the creator of a TextDocumentEdit doesn't need to sort the array of edits or do any\nkind of ordering. However the edits must be non overlapping." @@ -8613,9 +8628,8 @@ "documentation": "The server's version as defined by the server." } ], - "documentation": "Information about the server\n\n@since 3.15.0\n@since 3.18.0 ServerInfo type name added.\n@proposed", - "since": "3.18.0 ServerInfo type name added.", - "proposed": true + "documentation": "Information about the server\n\n@since 3.15.0\n@since 3.18.0 ServerInfo type name added.", + "since": "3.18.0 ServerInfo type name added." }, { "name": "VersionedTextDocumentIdentifier", @@ -9320,9 +9334,8 @@ "documentation": "Human readable description of why the code action is currently disabled.\n\nThis is displayed in the code actions UI." } ], - "documentation": "Captures why the code action is currently disabled.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "Captures why the code action is currently disabled.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "CodeActionOptions", @@ -9383,9 +9396,8 @@ } } ], - "documentation": "Location with only uri and does not include range.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "Location with only uri and does not include range.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "WorkspaceSymbolOptions", @@ -9603,9 +9615,8 @@ } } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "PrepareRenameDefaultBehavior", @@ -9618,9 +9629,8 @@ } } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ExecuteCommandOptions", @@ -9645,6 +9655,23 @@ ], "documentation": "The server capabilities of a {@link ExecuteCommandRequest}." }, + { + "name": "WorkspaceEditMetadata", + "properties": [ + { + "name": "isRefactoring", + "type": { + "kind": "base", + "name": "boolean" + }, + "optional": true, + "documentation": "Signal to the editor that this edit is a refactoring." + } + ], + "documentation": "Additional data about a workspace edit.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, { "name": "SemanticTokensLegend", "properties": [ @@ -9687,9 +9714,8 @@ "documentation": "The server supports deltas for full documents." } ], - "documentation": "Semantic tokens options to support deltas for full documents\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "Semantic tokens options to support deltas for full documents\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "OptionalVersionedTextDocumentIdentifier", @@ -9741,6 +9767,39 @@ "documentation": "A special text edit with an additional change annotation.\n\n@since 3.16.0.", "since": "3.16.0." }, + { + "name": "SnippetTextEdit", + "properties": [ + { + "name": "range", + "type": { + "kind": "reference", + "name": "Range" + }, + "documentation": "The range of the text document to be manipulated." + }, + { + "name": "snippet", + "type": { + "kind": "reference", + "name": "StringValue" + }, + "documentation": "The snippet to be inserted." + }, + { + "name": "annotationId", + "type": { + "kind": "reference", + "name": "ChangeAnnotationIdentifier" + }, + "optional": true, + "documentation": "The actual identifier of the snippet edit." + } + ], + "documentation": "An interactive text edit.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, { "name": "ResourceOperation", "properties": [ @@ -10020,9 +10079,8 @@ "documentation": "The cells of the matching notebook to be synced." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "NotebookDocumentFilterWithCells", @@ -10057,9 +10115,8 @@ "documentation": "The cells of the matching notebook to be synced." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "NotebookDocumentCellChanges", @@ -10098,9 +10155,8 @@ "documentation": "Changes to the text content of notebook cells." } ], - "documentation": "Cell changes to a notebook document.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "Cell changes to a notebook document.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "SelectedCompletionInfo", @@ -10147,9 +10203,8 @@ "documentation": "The client's version as defined by the client." } ], - "documentation": "Information about the client\n\n@since 3.15.0\n@since 3.18.0 ClientInfo type name added.\n@proposed", - "since": "3.18.0 ClientInfo type name added.", - "proposed": true + "documentation": "Information about the client\n\n@since 3.15.0\n@since 3.18.0 ClientInfo type name added.", + "since": "3.18.0 ClientInfo type name added." }, { "name": "ClientCapabilities", @@ -10296,9 +10351,8 @@ "since": "3.16.0" } ], - "documentation": "Defines workspace specific capabilities of the server.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "Defines workspace specific capabilities of the server.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "TextDocumentContentChangePartial", @@ -10330,9 +10384,8 @@ "documentation": "The new text for the provided range." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "TextDocumentContentChangeWholeDocument", @@ -10346,9 +10399,8 @@ "documentation": "The new text of the whole document." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "CodeDescription", @@ -10405,9 +10457,8 @@ } } ], - "documentation": "Edit range variant that includes ranges for insert and replace operations.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "Edit range variant that includes ranges for insert and replace operations.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "ServerCompletionItemOptions", @@ -10423,9 +10474,8 @@ "since": "3.17.0" } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "MarkedStringWithLanguage", @@ -10445,10 +10495,9 @@ } } ], - "documentation": "@since 3.18.0\n@proposed\n@deprecated use MarkupContent instead.", + "documentation": "@since 3.18.0\n@deprecated use MarkupContent instead.", "since": "3.18.0", - "deprecated": "use MarkupContent instead.", - "proposed": true + "deprecated": "use MarkupContent instead." }, { "name": "ParameterInformation", @@ -10606,9 +10655,8 @@ } } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "NotebookDocumentCellChangeStructure", @@ -10646,9 +10694,8 @@ "documentation": "Additional closed cell text documents." } ], - "documentation": "Structural changes to cells in a notebook document.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "Structural changes to cells in a notebook document.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "NotebookDocumentCellContentChanges", @@ -10671,9 +10718,8 @@ } } ], - "documentation": "Content changes to a cell in a notebook document.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "Content changes to a cell in a notebook document.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "WorkspaceClientCapabilities", @@ -11382,9 +11428,8 @@ "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples." } ], - "documentation": "A document filter where `language` is required field.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "A document filter where `language` is required field.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "TextDocumentFilterScheme", @@ -11416,9 +11461,8 @@ "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples." } ], - "documentation": "A document filter where `scheme` is required field.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "A document filter where `scheme` is required field.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "TextDocumentFilterPattern", @@ -11450,9 +11494,8 @@ "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples." } ], - "documentation": "A document filter where `pattern` is required field.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "A document filter where `pattern` is required field.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "NotebookDocumentFilterNotebookType", @@ -11484,9 +11527,8 @@ "documentation": "A glob pattern." } ], - "documentation": "A notebook document filter where `notebookType` is required field.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "A notebook document filter where `notebookType` is required field.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "NotebookDocumentFilterScheme", @@ -11518,9 +11560,8 @@ "documentation": "A glob pattern." } ], - "documentation": "A notebook document filter where `scheme` is required field.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "A notebook document filter where `scheme` is required field.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "NotebookDocumentFilterPattern", @@ -11552,9 +11593,8 @@ "documentation": "A glob pattern." } ], - "documentation": "A notebook document filter where `pattern` is required field.\n\n@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "A notebook document filter where `pattern` is required field.\n\n@since 3.18.0", + "since": "3.18.0" }, { "name": "NotebookCellArrayChange", @@ -11645,6 +11685,28 @@ "optional": true, "documentation": "Whether the client in general supports change annotations on text edits,\ncreate file, rename file and delete file changes.\n\n@since 3.16.0", "since": "3.16.0" + }, + { + "name": "metadataSupport", + "type": { + "kind": "base", + "name": "boolean" + }, + "optional": true, + "documentation": "Whether the client supports `WorkspaceEditMetadata` in `WorkspaceEdit`s.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, + { + "name": "snippetEditSupport", + "type": { + "kind": "base", + "name": "boolean" + }, + "optional": true, + "documentation": "Whether the client supports snippets as text edits.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true } ] }, @@ -12568,25 +12630,6 @@ { "name": "PublishDiagnosticsClientCapabilities", "properties": [ - { - "name": "relatedInformation", - "type": { - "kind": "base", - "name": "boolean" - }, - "optional": true, - "documentation": "Whether the clients accepts diagnostics with related information." - }, - { - "name": "tagSupport", - "type": { - "kind": "reference", - "name": "ClientDiagnosticsTagOptions" - }, - "optional": true, - "documentation": "Client supports the tag property to provide meta data about a diagnostic.\nClients supporting tags have to handle unknown tags gracefully.\n\n@since 3.15.0", - "since": "3.15.0" - }, { "name": "versionSupport", "type": { @@ -12596,26 +12639,12 @@ "optional": true, "documentation": "Whether the client interprets the version property of the\n`textDocument/publishDiagnostics` notification's parameter.\n\n@since 3.15.0", "since": "3.15.0" - }, - { - "name": "codeDescriptionSupport", - "type": { - "kind": "base", - "name": "boolean" - }, - "optional": true, - "documentation": "Client supports a codeDescription property\n\n@since 3.16.0", - "since": "3.16.0" - }, + } + ], + "extends": [ { - "name": "dataSupport", - "type": { - "kind": "base", - "name": "boolean" - }, - "optional": true, - "documentation": "Whether code action supports the `data` property which is\npreserved between a `textDocument/publishDiagnostics` and\n`textDocument/codeAction` request.\n\n@since 3.16.0", - "since": "3.16.0" + "kind": "reference", + "name": "DiagnosticsCapabilities" } ], "documentation": "The publish diagnostic client capabilities." @@ -12842,6 +12871,12 @@ "documentation": "Whether the clients supports related documents for document diagnostic pulls." } ], + "extends": [ + { + "kind": "reference", + "name": "DiagnosticsCapabilities" + } + ], "documentation": "Client capabilities specific to diagnostic pull requests.\n\n@since 3.17.0", "since": "3.17.0" }, @@ -12940,9 +12975,8 @@ "documentation": "The list of requests for which the client\nwill retry the request if it receives a\nresponse with error code `ContentModified`" } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "RegularExpressionsClientCapabilities", @@ -13018,9 +13052,8 @@ "documentation": "Whether the client groups edits with equal labels into tree nodes,\nfor instance all edits labelled with \"Changes in Strings\" would\nbe a tree node." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientSymbolKindOptions", @@ -13038,9 +13071,8 @@ "documentation": "The symbol kind values the client supports. When this\nproperty exists the client also guarantees that it will\nhandle values outside its set gracefully and falls back\nto a default value when unknown.\n\nIf this property is not present the client only supports\nthe symbol kinds from `File` to `Array` as defined in\nthe initial version of the protocol." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientSymbolTagOptions", @@ -13057,9 +13089,8 @@ "documentation": "The tags supported by the client." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientSymbolResolveOptions", @@ -13076,9 +13107,8 @@ "documentation": "The properties that a client can resolve lazily. Usually\n`location.range`" } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientCompletionItemOptions", @@ -13182,9 +13212,8 @@ "since": "3.17.0" } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientCompletionItemOptionsKind", @@ -13202,9 +13231,8 @@ "documentation": "The completion item kind values the client supports. When this\nproperty exists the client also guarantees that it will\nhandle values outside its set gracefully and falls back\nto a default value when unknown.\n\nIf this property is not present the client only supports\nthe completion items kinds from `Text` to `Reference` as defined in\nthe initial version of the protocol." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "CompletionListCapabilities", @@ -13272,9 +13300,8 @@ "proposed": true } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientCodeActionLiteralOptions", @@ -13288,9 +13315,8 @@ "documentation": "The code action kind is support with the following value\nset." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientCodeActionResolveOptions", @@ -13307,9 +13333,8 @@ "documentation": "The properties that a client can resolve lazily." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientFoldingRangeKindOptions", @@ -13327,9 +13352,8 @@ "documentation": "The folding range kind values the client supports. When this\nproperty exists the client also guarantees that it will\nhandle values outside its set gracefully and falls back\nto a default value when unknown." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientFoldingRangeOptions", @@ -13345,28 +13369,53 @@ "since": "3.17.0" } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { - "name": "ClientDiagnosticsTagOptions", + "name": "DiagnosticsCapabilities", "properties": [ { - "name": "valueSet", + "name": "relatedInformation", "type": { - "kind": "array", - "element": { - "kind": "reference", - "name": "DiagnosticTag" - } + "kind": "base", + "name": "boolean" }, - "documentation": "The tags supported by the client." + "optional": true, + "documentation": "Whether the clients accepts diagnostics with related information." + }, + { + "name": "tagSupport", + "type": { + "kind": "reference", + "name": "ClientDiagnosticsTagOptions" + }, + "optional": true, + "documentation": "Client supports the tag property to provide meta data about a diagnostic.\nClients supporting tags have to handle unknown tags gracefully.\n\n@since 3.15.0", + "since": "3.15.0" + }, + { + "name": "codeDescriptionSupport", + "type": { + "kind": "base", + "name": "boolean" + }, + "optional": true, + "documentation": "Client supports a codeDescription property\n\n@since 3.16.0", + "since": "3.16.0" + }, + { + "name": "dataSupport", + "type": { + "kind": "base", + "name": "boolean" + }, + "optional": true, + "documentation": "Whether code action supports the `data` property which is\npreserved between a `textDocument/publishDiagnostics` and\n`textDocument/codeAction` request.\n\n@since 3.16.0", + "since": "3.16.0" } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "General diagnostics capabilities for pull and push model." }, { "name": "ClientSemanticTokensRequestOptions", @@ -13410,9 +13459,8 @@ "documentation": "The client will send the `textDocument/semanticTokens/full` request if\nthe server provides a corresponding handler." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientInlayHintResolveOptions", @@ -13429,9 +13477,8 @@ "documentation": "The properties that a client can resolve lazily." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientShowMessageActionItemOptions", @@ -13446,9 +13493,8 @@ "documentation": "Whether the client supports additional attributes which\nare preserved and send back to the server in the\nrequest's response." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "CompletionItemTagOptions", @@ -13465,9 +13511,8 @@ "documentation": "The tags supported by the client." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientCompletionItemResolveOptions", @@ -13484,9 +13529,8 @@ "documentation": "The properties that a client can resolve lazily." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientCompletionItemInsertTextModeOptions", @@ -13502,9 +13546,8 @@ } } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientSignatureParameterInformationOptions", @@ -13520,9 +13563,8 @@ "since": "3.14.0" } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientCodeActionKindOptions", @@ -13539,9 +13581,26 @@ "documentation": "The code action kind values the client supports. When this\nproperty exists the client also guarantees that it will\nhandle values outside its set gracefully and falls back\nto a default value when unknown." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" + }, + { + "name": "ClientDiagnosticsTagOptions", + "properties": [ + { + "name": "valueSet", + "type": { + "kind": "array", + "element": { + "kind": "reference", + "name": "DiagnosticTag" + } + }, + "documentation": "The tags supported by the client." + } + ], + "documentation": "@since 3.18.0", + "since": "3.18.0" }, { "name": "ClientSemanticTokensRequestFullDelta", @@ -13556,9 +13615,8 @@ "documentation": "The client will send the `textDocument/semanticTokens/full/delta` request if\nthe server provides a corresponding handler." } ], - "documentation": "@since 3.18.0\n@proposed", - "since": "3.18.0", - "proposed": true + "documentation": "@since 3.18.0", + "since": "3.18.0" } ], "enumerations": [ @@ -14547,6 +14605,10 @@ "name": "Handlebars", "value": "handlebars" }, + { + "name": "Haskell", + "value": "haskell" + }, { "name": "HTML", "value": "html" diff --git a/packages/python/lsprotocol/_hooks.py b/packages/python/lsprotocol/_hooks.py index 7f4f144..e505bfe 100644 --- a/packages/python/lsprotocol/_hooks.py +++ b/packages/python/lsprotocol/_hooks.py @@ -734,6 +734,17 @@ def _language_kind_hook( return object_ return converter.structure(object_, lsp_types.LanguageKind) + def _text_edit_hook( + object_: Any, _: type + ) -> Union[ + lsp_types.TextEdit, lsp_types.AnnotatedTextEdit, lsp_types.SnippetTextEdit + ]: + if "snippet" in object_: + return converter.structure(object_, lsp_types.SnippetTextEdit) + if "annotationId" in object_: + return converter.structure(object_, lsp_types.AnnotatedTextEdit) + return converter.structure(object_, lsp_types.TextEdit) + structure_hooks = [ ( Optional[ @@ -1079,6 +1090,14 @@ def _language_kind_hook( Union[lsp_types.LanguageKind, str], _language_kind_hook, ), + ( + Union[ + lsp_types.TextEdit, + lsp_types.AnnotatedTextEdit, + lsp_types.SnippetTextEdit, + ], + _text_edit_hook, + ), ] for type_, hook in structure_hooks: converter.register_structure_hook(type_, hook) diff --git a/packages/python/lsprotocol/types.py b/packages/python/lsprotocol/types.py index 2dc26ff..443f61e 100644 --- a/packages/python/lsprotocol/types.py +++ b/packages/python/lsprotocol/types.py @@ -521,6 +521,7 @@ class LanguageKind(str, enum.Enum): Go = "go" Groovy = "groovy" Handlebars = "handlebars" + Haskell = "haskell" Html = "html" Ini = "ini" Java = "java" @@ -4795,6 +4796,14 @@ class ApplyWorkspaceEditParams: presented in the user interface for example on an undo stack to undo the workspace edit.""" + metadata: Optional["WorkspaceEditMetadata"] = attrs.field(default=None) + """Additional data about the edit. + + @since 3.18.0 + @proposed""" + # Since: 3.18.0 + # Proposed + @attrs.define class ApplyWorkspaceEditResult: @@ -5144,12 +5153,17 @@ class TextDocumentEdit: text_document: "OptionalVersionedTextDocumentIdentifier" = attrs.field() """The text document to change.""" - edits: Sequence[Union[TextEdit, "AnnotatedTextEdit"]] = attrs.field() + edits: Sequence[Union[TextEdit, "AnnotatedTextEdit", "SnippetTextEdit"]] = ( + attrs.field() + ) """The edits to be applied. @since 3.16.0 - support for AnnotatedTextEdit. This is guarded using a + client capability. + + @since 3.18.0 - support for SnippetTextEdit. This is guarded using a client capability.""" - # Since: 3.16.0 - support for AnnotatedTextEdit. This is guarded using aclient capability. + # Since: 3.18.0 - support for SnippetTextEdit. This is guarded using aclient capability. @attrs.define @@ -5971,11 +5985,9 @@ class ServerInfo: """Information about the server @since 3.15.0 - @since 3.18.0 ServerInfo type name added. - @proposed""" + @since 3.18.0 ServerInfo type name added.""" # Since: 3.18.0 ServerInfo type name added. - # Proposed name: str = attrs.field(validator=attrs.validators.instance_of(str)) """The name of the server as defined by the server.""" @@ -6287,11 +6299,9 @@ class CodeActionContext: class CodeActionDisabled: """Captures why the code action is currently disabled. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed reason: str = attrs.field(validator=attrs.validators.instance_of(str)) """Human readable description of why the code action is currently disabled. @@ -6303,11 +6313,9 @@ class CodeActionDisabled: class LocationUriOnly: """Location with only uri and does not include range. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed uri: str = attrs.field(validator=attrs.validators.instance_of(str)) @@ -6352,11 +6360,9 @@ class FormattingOptions: @attrs.define class PrepareRenamePlaceholder: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed range: Range = attrs.field() @@ -6365,13 +6371,28 @@ class PrepareRenamePlaceholder: @attrs.define class PrepareRenameDefaultBehavior: - """@since 3.18.0 + """@since 3.18.0""" + + # Since: 3.18.0 + + default_behavior: bool = attrs.field(validator=attrs.validators.instance_of(bool)) + + +@attrs.define +class WorkspaceEditMetadata: + """Additional data about a workspace edit. + + @since 3.18.0 @proposed""" # Since: 3.18.0 # Proposed - default_behavior: bool = attrs.field(validator=attrs.validators.instance_of(bool)) + is_refactoring: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Signal to the editor that this edit is a refactoring.""" @attrs.define @@ -6391,11 +6412,9 @@ class SemanticTokensLegend: class SemanticTokensFullDelta: """Semantic tokens options to support deltas for full documents - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed delta: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -6439,6 +6458,26 @@ class AnnotatedTextEdit: empty string.""" +@attrs.define +class SnippetTextEdit: + """An interactive text edit. + + @since 3.18.0 + @proposed""" + + # Since: 3.18.0 + # Proposed + + range: Range = attrs.field() + """The range of the text document to be manipulated.""" + + snippet: StringValue = attrs.field() + """The snippet to be inserted.""" + + annotation_id: Optional[ChangeAnnotationIdentifier] = attrs.field(default=None) + """The actual identifier of the snippet edit.""" + + @attrs.define class CreateFileOptions: """Options to create a file.""" @@ -6606,11 +6645,9 @@ class NotebookCell: @attrs.define class NotebookDocumentFilterWithNotebook: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed notebook: Union[str, NotebookDocumentFilter] = attrs.field() """The notebook to be synced If a string @@ -6623,11 +6660,9 @@ class NotebookDocumentFilterWithNotebook: @attrs.define class NotebookDocumentFilterWithCells: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed cells: Sequence["NotebookCellLanguage"] = attrs.field() """The cells of the matching notebook to be synced.""" @@ -6642,11 +6677,9 @@ class NotebookDocumentFilterWithCells: class NotebookDocumentCellChanges: """Cell changes to a notebook document. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed structure: Optional["NotebookDocumentCellChangeStructure"] = attrs.field( default=None @@ -6686,11 +6719,9 @@ class ClientInfo: """Information about the client @since 3.15.0 - @since 3.18.0 ClientInfo type name added. - @proposed""" + @since 3.18.0 ClientInfo type name added.""" # Since: 3.18.0 ClientInfo type name added. - # Proposed name: str = attrs.field(validator=attrs.validators.instance_of(str)) """The name of the client as defined by the client.""" @@ -6771,11 +6802,9 @@ class TextDocumentSyncOptions: class WorkspaceOptions: """Defines workspace specific capabilities of the server. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed workspace_folders: Optional["WorkspaceFoldersServerCapabilities"] = attrs.field( default=None @@ -6794,11 +6823,9 @@ class WorkspaceOptions: @attrs.define class TextDocumentContentChangePartial: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed range: Range = attrs.field() """The range of the document that changed.""" @@ -6816,11 +6843,9 @@ class TextDocumentContentChangePartial: @attrs.define class TextDocumentContentChangeWholeDocument: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed text: str = attrs.field(validator=attrs.validators.instance_of(str)) """The new text of the whole document.""" @@ -6855,11 +6880,9 @@ class DiagnosticRelatedInformation: class EditRangeWithInsertReplace: """Edit range variant that includes ranges for insert and replace operations. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed insert: Range = attrs.field() @@ -6868,11 +6891,9 @@ class EditRangeWithInsertReplace: @attrs.define class ServerCompletionItemOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed label_details_support: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -6889,11 +6910,9 @@ class ServerCompletionItemOptions: @attrs.define class MarkedStringWithLanguage: """@since 3.18.0 - @proposed @deprecated use MarkupContent instead.""" # Since: 3.18.0 - # Proposed language: str = attrs.field(validator=attrs.validators.instance_of(str)) @@ -7004,11 +7023,9 @@ class ExecutionSummary: @attrs.define class NotebookCellLanguage: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed language: str = attrs.field(validator=attrs.validators.instance_of(str)) @@ -7017,11 +7034,9 @@ class NotebookCellLanguage: class NotebookDocumentCellChangeStructure: """Structural changes to cells in a notebook document. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed array: "NotebookCellArrayChange" = attrs.field() """The change to the cell array.""" @@ -7037,11 +7052,9 @@ class NotebookDocumentCellChangeStructure: class NotebookDocumentCellContentChanges: """Content changes to a cell in a notebook document. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed document: VersionedTextDocumentIdentifier = attrs.field() @@ -7521,11 +7534,9 @@ class RelativePattern: class TextDocumentFilterLanguage: """A document filter where `language` is required field. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed language: str = attrs.field(validator=attrs.validators.instance_of(str)) """A language id, like `typescript`.""" @@ -7547,11 +7558,9 @@ class TextDocumentFilterLanguage: class TextDocumentFilterScheme: """A document filter where `scheme` is required field. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed scheme: str = attrs.field(validator=attrs.validators.instance_of(str)) """A Uri {@link Uri.scheme scheme}, like `file` or `untitled`.""" @@ -7573,11 +7582,9 @@ class TextDocumentFilterScheme: class TextDocumentFilterPattern: """A document filter where `pattern` is required field. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed pattern: str = attrs.field(validator=attrs.validators.instance_of(str)) """A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.""" @@ -7599,11 +7606,9 @@ class TextDocumentFilterPattern: class NotebookDocumentFilterNotebookType: """A notebook document filter where `notebookType` is required field. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed notebook_type: str = attrs.field(validator=attrs.validators.instance_of(str)) """The type of the enclosing notebook.""" @@ -7625,11 +7630,9 @@ class NotebookDocumentFilterNotebookType: class NotebookDocumentFilterScheme: """A notebook document filter where `scheme` is required field. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed scheme: str = attrs.field(validator=attrs.validators.instance_of(str)) """A Uri {@link Uri.scheme scheme}, like `file` or `untitled`.""" @@ -7651,11 +7654,9 @@ class NotebookDocumentFilterScheme: class NotebookDocumentFilterPattern: """A notebook document filter where `pattern` is required field. - @since 3.18.0 - @proposed""" + @since 3.18.0""" # Since: 3.18.0 - # Proposed pattern: str = attrs.field(validator=attrs.validators.instance_of(str)) """A glob pattern.""" @@ -7738,6 +7739,28 @@ class WorkspaceEditClientCapabilities: @since 3.16.0""" # Since: 3.16.0 + metadata_support: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Whether the client supports `WorkspaceEditMetadata` in `WorkspaceEdit`s. + + @since 3.18.0 + @proposed""" + # Since: 3.18.0 + # Proposed + + snippet_edit_support: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Whether the client supports snippets as text edits. + + @since 3.18.0 + @proposed""" + # Since: 3.18.0 + # Proposed + @attrs.define class DidChangeConfigurationClientCapabilities: @@ -8517,8 +8540,8 @@ class SelectionRangeClientCapabilities: @attrs.define -class PublishDiagnosticsClientCapabilities: - """The publish diagnostic client capabilities.""" +class DiagnosticsCapabilities: + """General diagnostics capabilities for pull and push model.""" related_information: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -8533,6 +8556,31 @@ class PublishDiagnosticsClientCapabilities: @since 3.15.0""" # Since: 3.15.0 + code_description_support: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Client supports a codeDescription property + + @since 3.16.0""" + # Since: 3.16.0 + + data_support: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Whether code action supports the `data` property which is + preserved between a `textDocument/publishDiagnostics` and + `textDocument/codeAction` request. + + @since 3.16.0""" + # Since: 3.16.0 + + +@attrs.define +class PublishDiagnosticsClientCapabilities: + """The publish diagnostic client capabilities.""" + version_support: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), default=None, @@ -8543,6 +8591,19 @@ class PublishDiagnosticsClientCapabilities: @since 3.15.0""" # Since: 3.15.0 + related_information: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Whether the clients accepts diagnostics with related information.""" + + tag_support: Optional["ClientDiagnosticsTagOptions"] = attrs.field(default=None) + """Client supports the tag property to provide meta data about a diagnostic. + Clients supporting tags have to handle unknown tags gracefully. + + @since 3.15.0""" + # Since: 3.15.0 + code_description_support: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), default=None, @@ -8760,6 +8821,39 @@ class DiagnosticClientCapabilities: ) """Whether the clients supports related documents for document diagnostic pulls.""" + related_information: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Whether the clients accepts diagnostics with related information.""" + + tag_support: Optional["ClientDiagnosticsTagOptions"] = attrs.field(default=None) + """Client supports the tag property to provide meta data about a diagnostic. + Clients supporting tags have to handle unknown tags gracefully. + + @since 3.15.0""" + # Since: 3.15.0 + + code_description_support: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Client supports a codeDescription property + + @since 3.16.0""" + # Since: 3.16.0 + + data_support: Optional[bool] = attrs.field( + validator=attrs.validators.optional(attrs.validators.instance_of(bool)), + default=None, + ) + """Whether code action supports the `data` property which is + preserved between a `textDocument/publishDiagnostics` and + `textDocument/codeAction` request. + + @since 3.16.0""" + # Since: 3.16.0 + @attrs.define class InlineCompletionClientCapabilities: @@ -8827,11 +8921,9 @@ class ShowDocumentClientCapabilities: @attrs.define class StaleRequestSupportOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed cancel: bool = attrs.field(validator=attrs.validators.instance_of(bool)) """The client will actively cancel the request.""" @@ -8887,11 +8979,9 @@ class MarkdownClientCapabilities: @attrs.define class ChangeAnnotationsSupportOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed groups_on_label: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -8904,11 +8994,9 @@ class ChangeAnnotationsSupportOptions: @attrs.define class ClientSymbolKindOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed value_set: Optional[Sequence[SymbolKind]] = attrs.field(default=None) """The symbol kind values the client supports. When this @@ -8923,11 +9011,9 @@ class ClientSymbolKindOptions: @attrs.define class ClientSymbolTagOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed value_set: Sequence[SymbolTag] = attrs.field() """The tags supported by the client.""" @@ -8935,11 +9021,9 @@ class ClientSymbolTagOptions: @attrs.define class ClientSymbolResolveOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed properties: Sequence[str] = attrs.field() """The properties that a client can resolve lazily. Usually @@ -8948,11 +9032,9 @@ class ClientSymbolResolveOptions: @attrs.define class ClientCompletionItemOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed snippet_support: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -9039,11 +9121,9 @@ class ClientCompletionItemOptions: @attrs.define class ClientCompletionItemOptionsKind: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed value_set: Optional[Sequence[CompletionItemKind]] = attrs.field(default=None) """The completion item kind values the client supports. When this @@ -9079,11 +9159,9 @@ class CompletionListCapabilities: @attrs.define class ClientSignatureInformationOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed documentation_format: Optional[Sequence[MarkupKind]] = attrs.field(default=None) """Client supports the following content formats for the documentation @@ -9120,11 +9198,9 @@ class ClientSignatureInformationOptions: @attrs.define class ClientCodeActionLiteralOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed code_action_kind: "ClientCodeActionKindOptions" = attrs.field() """The code action kind is support with the following value @@ -9133,11 +9209,9 @@ class ClientCodeActionLiteralOptions: @attrs.define class ClientCodeActionResolveOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed properties: Sequence[str] = attrs.field() """The properties that a client can resolve lazily.""" @@ -9145,11 +9219,9 @@ class ClientCodeActionResolveOptions: @attrs.define class ClientFoldingRangeKindOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed value_set: Optional[Sequence[Union[FoldingRangeKind, str]]] = attrs.field( default=None @@ -9162,11 +9234,9 @@ class ClientFoldingRangeKindOptions: @attrs.define class ClientFoldingRangeOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed collapsed_text: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -9179,25 +9249,11 @@ class ClientFoldingRangeOptions: # Since: 3.17.0 -@attrs.define -class ClientDiagnosticsTagOptions: - """@since 3.18.0 - @proposed""" - - # Since: 3.18.0 - # Proposed - - value_set: Sequence[DiagnosticTag] = attrs.field() - """The tags supported by the client.""" - - @attrs.define class ClientSemanticTokensRequestOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed range: Optional[Union[bool, Any]] = attrs.field(default=None) """The client will send the `textDocument/semanticTokens/range` request if @@ -9212,11 +9268,9 @@ class ClientSemanticTokensRequestOptions: @attrs.define class ClientInlayHintResolveOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed properties: Sequence[str] = attrs.field() """The properties that a client can resolve lazily.""" @@ -9224,11 +9278,9 @@ class ClientInlayHintResolveOptions: @attrs.define class ClientShowMessageActionItemOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed additional_properties_support: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -9241,11 +9293,9 @@ class ClientShowMessageActionItemOptions: @attrs.define class CompletionItemTagOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed value_set: Sequence[CompletionItemTag] = attrs.field() """The tags supported by the client.""" @@ -9253,11 +9303,9 @@ class CompletionItemTagOptions: @attrs.define class ClientCompletionItemResolveOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed properties: Sequence[str] = attrs.field() """The properties that a client can resolve lazily.""" @@ -9265,22 +9313,18 @@ class ClientCompletionItemResolveOptions: @attrs.define class ClientCompletionItemInsertTextModeOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed value_set: Sequence[InsertTextMode] = attrs.field() @attrs.define class ClientSignatureParameterInformationOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed label_offset_support: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -9295,11 +9339,9 @@ class ClientSignatureParameterInformationOptions: @attrs.define class ClientCodeActionKindOptions: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed value_set: Sequence[Union[CodeActionKind, str]] = attrs.field() """The code action kind values the client supports. When this @@ -9308,13 +9350,21 @@ class ClientCodeActionKindOptions: to a default value when unknown.""" +@attrs.define +class ClientDiagnosticsTagOptions: + """@since 3.18.0""" + + # Since: 3.18.0 + + value_set: Sequence[DiagnosticTag] = attrs.field() + """The tags supported by the client.""" + + @attrs.define class ClientSemanticTokensRequestFullDelta: - """@since 3.18.0 - @proposed""" + """@since 3.18.0""" # Since: 3.18.0 - # Proposed delta: Optional[bool] = attrs.field( validator=attrs.validators.optional(attrs.validators.instance_of(bool)), @@ -12902,6 +12952,7 @@ def is_special_property(cls: type, property_name: str) -> bool: "DiagnosticSeverity": DiagnosticSeverity, "DiagnosticTag": DiagnosticTag, "DiagnosticWorkspaceClientCapabilities": DiagnosticWorkspaceClientCapabilities, + "DiagnosticsCapabilities": DiagnosticsCapabilities, "DidChangeConfigurationClientCapabilities": DidChangeConfigurationClientCapabilities, "DidChangeConfigurationParams": DidChangeConfigurationParams, "DidChangeConfigurationRegistrationOptions": DidChangeConfigurationRegistrationOptions, @@ -13178,6 +13229,7 @@ def is_special_property(cls: type, property_name: str) -> bool: "SignatureHelpRegistrationOptions": SignatureHelpRegistrationOptions, "SignatureHelpTriggerKind": SignatureHelpTriggerKind, "SignatureInformation": SignatureInformation, + "SnippetTextEdit": SnippetTextEdit, "StaleRequestSupportOptions": StaleRequestSupportOptions, "StaticRegistrationOptions": StaticRegistrationOptions, "StringValue": StringValue, @@ -13385,6 +13437,7 @@ def is_special_property(cls: type, property_name: str) -> bool: "WorkspaceDocumentDiagnosticReport": WorkspaceDocumentDiagnosticReport, "WorkspaceEdit": WorkspaceEdit, "WorkspaceEditClientCapabilities": WorkspaceEditClientCapabilities, + "WorkspaceEditMetadata": WorkspaceEditMetadata, "WorkspaceExecuteCommandRequest": WorkspaceExecuteCommandRequest, "WorkspaceExecuteCommandResponse": WorkspaceExecuteCommandResponse, "WorkspaceExecuteCommandResult": WorkspaceExecuteCommandResult, diff --git a/packages/python/pyproject.toml b/packages/python/pyproject.toml index 292dbb0..429b779 100644 --- a/packages/python/pyproject.toml +++ b/packages/python/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi" [project] name = "lsprotocol" description = 'Python types for Language Server Protocol.' -version = "2024.0.0a1" +version = "2024.0.0" authors = [ { name = "Microsoft Corporation", email = "lsprotocol-help@microsoft.com" }, ] diff --git a/packages/python/requirements.txt b/packages/python/requirements.txt index 3eb4339..a9c30fc 100644 --- a/packages/python/requirements.txt +++ b/packages/python/requirements.txt @@ -14,11 +14,11 @@ cattrs==23.2.3 \ --hash=sha256:0341994d94971052e9ee70662542699a3162ea1e0c62f7ce1b4a57f563685108 \ --hash=sha256:a934090d95abaa9e911dac357e3a8699e0b4b14f8529bcc7d2b1ad9d51672b9f # via -r ./packages/python/requirements.in -exceptiongroup==1.2.0 \ - --hash=sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14 \ - --hash=sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68 +exceptiongroup==1.2.1 \ + --hash=sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad \ + --hash=sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16 # via cattrs -typing-extensions==4.9.0 \ - --hash=sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783 \ - --hash=sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd +typing-extensions==4.12.1 \ + --hash=sha256:6024b58b69089e5a89c347397254e35f1bf02a907728ec7fee9bf0fe837d203a \ + --hash=sha256:915f5e35ff76f56588223f15fdd5938f9a1cf9195c0de25130c627e4d597f6d1 # via cattrs diff --git a/packages/rust/lsprotocol/Cargo.toml b/packages/rust/lsprotocol/Cargo.toml index bdd6db9..cca7fef 100644 --- a/packages/rust/lsprotocol/Cargo.toml +++ b/packages/rust/lsprotocol/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lsprotocol" -version = "0.1.0-alpha.2" +version = "0.1.0-beta.1" edition = "2021" description = "Rust types for Language Server Protocol generated from LSP specification." authors = ["Microsoft Corporation "] diff --git a/packages/rust/lsprotocol/src/lib.rs b/packages/rust/lsprotocol/src/lib.rs index 0172bf0..abba3d6 100644 --- a/packages/rust/lsprotocol/src/lib.rs +++ b/packages/rust/lsprotocol/src/lib.rs @@ -1468,6 +1468,9 @@ pub enum LanguageKind { #[serde(rename = "handlebars")] Handlebars, + #[serde(rename = "haskell")] + Haskell, + #[serde(rename = "html")] Html, @@ -4947,6 +4950,13 @@ pub struct ApplyWorkspaceEditParams { /// presented in the user interface for example on an undo /// stack to undo the workspace edit. pub label: Option, + + /// Additional data about the edit. + /// + /// @since 3.18.0 + /// @proposed + #[cfg(feature = "proposed")] + pub metadata: Option, } /// The result returned from the apply workspace edit request. @@ -5346,7 +5356,10 @@ pub struct TextDocumentEdit { /// /// @since 3.16.0 - support for AnnotatedTextEdit. This is guarded using a /// client capability. - pub edits: Vec>, + /// + /// @since 3.18.0 - support for SnippetTextEdit. This is guarded using a + /// client capability. + pub edits: Vec>, /// The text document to change. pub text_document: OptionalVersionedTextDocumentIdentifier, @@ -6176,8 +6189,6 @@ pub struct ServerCapabilities { /// /// @since 3.15.0 /// @since 3.18.0 ServerInfo type name added. -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ServerInfo { @@ -6575,8 +6586,6 @@ pub struct CodeActionContext { /// Captures why the code action is currently disabled. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct CodeActionDisabled { @@ -6626,8 +6635,6 @@ pub struct CodeActionOptions { /// Location with only uri and does not include range. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct LocationUriOnly { @@ -6738,8 +6745,6 @@ pub struct RenameOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct PrepareRenamePlaceholder { @@ -6749,8 +6754,6 @@ pub struct PrepareRenamePlaceholder { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct PrepareRenameDefaultBehavior { @@ -6767,6 +6770,18 @@ pub struct ExecuteCommandOptions { pub work_done_progress: Option, } +/// Additional data about a workspace edit. +/// +/// @since 3.18.0 +/// @proposed +#[cfg(feature = "proposed")] +#[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] +#[serde(rename_all = "camelCase", deny_unknown_fields)] +pub struct WorkspaceEditMetadata { + /// Signal to the editor that this edit is a refactoring. + pub is_refactoring: Option, +} + /// @since 3.16.0 #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] @@ -6781,8 +6796,6 @@ pub struct SemanticTokensLegend { /// Semantic tokens options to support deltas for full documents /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct SemanticTokensFullDelta { @@ -6824,6 +6837,24 @@ pub struct AnnotatedTextEdit { pub range: Range, } +/// An interactive text edit. +/// +/// @since 3.18.0 +/// @proposed +#[cfg(feature = "proposed")] +#[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] +#[serde(rename_all = "camelCase", deny_unknown_fields)] +pub struct SnippetTextEdit { + /// The actual identifier of the snippet edit. + pub annotation_id: Option, + + /// The range of the text document to be manipulated. + pub range: Range, + + /// The snippet to be inserted. + pub snippet: StringValue, +} + /// A generic resource operation. #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] @@ -6974,8 +7005,6 @@ pub struct NotebookCell { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookDocumentFilterWithNotebook { @@ -6989,8 +7018,6 @@ pub struct NotebookDocumentFilterWithNotebook { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookDocumentFilterWithCells { @@ -7006,8 +7033,6 @@ pub struct NotebookDocumentFilterWithCells { /// Cell changes to a notebook document. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookDocumentCellChanges { @@ -7042,8 +7067,6 @@ pub struct SelectedCompletionInfo { /// /// @since 3.15.0 /// @since 3.18.0 ClientInfo type name added. -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientInfo { @@ -7108,8 +7131,6 @@ pub struct TextDocumentSyncOptions { /// Defines workspace specific capabilities of the server. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct WorkspaceOptions { @@ -7125,8 +7146,6 @@ pub struct WorkspaceOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct TextDocumentContentChangePartial { @@ -7144,8 +7163,6 @@ pub struct TextDocumentContentChangePartial { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct TextDocumentContentChangeWholeDocument { @@ -7179,8 +7196,6 @@ pub struct DiagnosticRelatedInformation { /// Edit range variant that includes ranges for insert and replace operations. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct EditRangeWithInsertReplace { @@ -7190,8 +7205,6 @@ pub struct EditRangeWithInsertReplace { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ServerCompletionItemOptions { @@ -7204,10 +7217,8 @@ pub struct ServerCompletionItemOptions { } /// @since 3.18.0 -/// @proposed /// @deprecated use MarkupContent instead. #[deprecated] -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct MarkedStringWithLanguage { @@ -7305,8 +7316,6 @@ pub struct ExecutionSummary { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookCellLanguage { @@ -7316,8 +7325,6 @@ pub struct NotebookCellLanguage { /// Structural changes to cells in a notebook document. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookDocumentCellChangeStructure { @@ -7334,8 +7341,6 @@ pub struct NotebookDocumentCellChangeStructure { /// Content changes to a cell in a notebook document. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookDocumentCellContentChanges { @@ -7694,8 +7699,6 @@ pub struct RelativePattern { /// A document filter where `language` is required field. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct TextDocumentFilterLanguage { @@ -7712,8 +7715,6 @@ pub struct TextDocumentFilterLanguage { /// A document filter where `scheme` is required field. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct TextDocumentFilterScheme { @@ -7730,8 +7731,6 @@ pub struct TextDocumentFilterScheme { /// A document filter where `pattern` is required field. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct TextDocumentFilterPattern { @@ -7748,8 +7747,6 @@ pub struct TextDocumentFilterPattern { /// A notebook document filter where `notebookType` is required field. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookDocumentFilterNotebookType { @@ -7766,8 +7763,6 @@ pub struct NotebookDocumentFilterNotebookType { /// A notebook document filter where `scheme` is required field. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookDocumentFilterScheme { @@ -7784,8 +7779,6 @@ pub struct NotebookDocumentFilterScheme { /// A notebook document filter where `pattern` is required field. /// /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct NotebookDocumentFilterPattern { @@ -7834,6 +7827,13 @@ pub struct WorkspaceEditClientCapabilities { /// @since 3.13.0 pub failure_handling: Option, + /// Whether the client supports `WorkspaceEditMetadata` in `WorkspaceEdit`s. + /// + /// @since 3.18.0 + /// @proposed + #[cfg(feature = "proposed")] + pub metadata_support: Option, + /// Whether the client normalizes line endings to the client specific /// setting. /// If set to `true` the client will normalize line ending characters @@ -7848,6 +7848,13 @@ pub struct WorkspaceEditClientCapabilities { /// /// @since 3.13.0 pub resource_operations: Option>, + + /// Whether the client supports snippets as text edits. + /// + /// @since 3.18.0 + /// @proposed + #[cfg(feature = "proposed")] + pub snippet_edit_support: Option, } #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] @@ -8559,6 +8566,18 @@ pub struct InlayHintClientCapabilities { #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct DiagnosticClientCapabilities { + /// Client supports a codeDescription property + /// + /// @since 3.16.0 + pub code_description_support: Option, + + /// Whether code action supports the `data` property which is + /// preserved between a `textDocument/publishDiagnostics` and + /// `textDocument/codeAction` request. + /// + /// @since 3.16.0 + pub data_support: Option, + /// Whether implementation supports dynamic registration. If this is set to `true` /// the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` /// return value for the corresponding server capability as well. @@ -8566,6 +8585,15 @@ pub struct DiagnosticClientCapabilities { /// Whether the clients supports related documents for document diagnostic pulls. pub related_document_support: Option, + + /// Whether the clients accepts diagnostics with related information. + pub related_information: Option, + + /// Client supports the tag property to provide meta data about a diagnostic. + /// Clients supporting tags have to handle unknown tags gracefully. + /// + /// @since 3.15.0 + pub tag_support: Option, } /// Client capabilities specific to inline completions. @@ -8616,8 +8644,6 @@ pub struct ShowDocumentClientCapabilities { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct StaleRequestSupportOptions { @@ -8663,8 +8689,6 @@ pub struct MarkdownClientCapabilities { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ChangeAnnotationsSupportOptions { @@ -8675,8 +8699,6 @@ pub struct ChangeAnnotationsSupportOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientSymbolKindOptions { @@ -8692,8 +8714,6 @@ pub struct ClientSymbolKindOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientSymbolTagOptions { @@ -8702,8 +8722,6 @@ pub struct ClientSymbolTagOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientSymbolResolveOptions { @@ -8713,8 +8731,6 @@ pub struct ClientSymbolResolveOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientCompletionItemOptions { @@ -8775,8 +8791,6 @@ pub struct ClientCompletionItemOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientCompletionItemOptionsKind { @@ -8810,8 +8824,6 @@ pub struct CompletionListCapabilities { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientSignatureInformationOptions { @@ -8839,8 +8851,6 @@ pub struct ClientSignatureInformationOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientCodeActionLiteralOptions { @@ -8850,8 +8860,6 @@ pub struct ClientCodeActionLiteralOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientCodeActionResolveOptions { @@ -8860,8 +8868,6 @@ pub struct ClientCodeActionResolveOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientFoldingRangeKindOptions { @@ -8873,8 +8879,6 @@ pub struct ClientFoldingRangeKindOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientFoldingRangeOptions { @@ -8885,19 +8889,33 @@ pub struct ClientFoldingRangeOptions { pub collapsed_text: Option, } -/// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] +/// General diagnostics capabilities for pull and push model. #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] -pub struct ClientDiagnosticsTagOptions { - /// The tags supported by the client. - pub value_set: Vec, +pub struct DiagnosticsCapabilities { + /// Client supports a codeDescription property + /// + /// @since 3.16.0 + pub code_description_support: Option, + + /// Whether code action supports the `data` property which is + /// preserved between a `textDocument/publishDiagnostics` and + /// `textDocument/codeAction` request. + /// + /// @since 3.16.0 + pub data_support: Option, + + /// Whether the clients accepts diagnostics with related information. + pub related_information: Option, + + /// Client supports the tag property to provide meta data about a diagnostic. + /// Clients supporting tags have to handle unknown tags gracefully. + /// + /// @since 3.15.0 + pub tag_support: Option, } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientSemanticTokensRequestOptions { @@ -8911,8 +8929,6 @@ pub struct ClientSemanticTokensRequestOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientInlayHintResolveOptions { @@ -8921,8 +8937,6 @@ pub struct ClientInlayHintResolveOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientShowMessageActionItemOptions { @@ -8933,8 +8947,6 @@ pub struct ClientShowMessageActionItemOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct CompletionItemTagOptions { @@ -8943,8 +8955,6 @@ pub struct CompletionItemTagOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientCompletionItemResolveOptions { @@ -8953,8 +8963,6 @@ pub struct ClientCompletionItemResolveOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientCompletionItemInsertTextModeOptions { @@ -8962,8 +8970,6 @@ pub struct ClientCompletionItemInsertTextModeOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientSignatureParameterInformationOptions { @@ -8975,8 +8981,6 @@ pub struct ClientSignatureParameterInformationOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientCodeActionKindOptions { @@ -8988,8 +8992,14 @@ pub struct ClientCodeActionKindOptions { } /// @since 3.18.0 -/// @proposed -#[cfg(feature = "proposed")] +#[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] +#[serde(rename_all = "camelCase", deny_unknown_fields)] +pub struct ClientDiagnosticsTagOptions { + /// The tags supported by the client. + pub value_set: Vec, +} + +/// @since 3.18.0 #[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct ClientSemanticTokensRequestFullDelta { diff --git a/requirements.txt b/requirements.txt index 982e0d7..634e74a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,15 +20,15 @@ colorama==0.4.6 \ --hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \ --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6 # via pytest -exceptiongroup==1.2.0 \ - --hash=sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14 \ - --hash=sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68 +exceptiongroup==1.2.1 \ + --hash=sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad \ + --hash=sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16 # via # cattrs # pytest -importlib-resources==6.1.1 \ - --hash=sha256:3893a00122eafde6894c59914446a512f728a0c1a45f9bb9b63721b6bacf0b4a \ - --hash=sha256:e8bf90d8213b486f428c9c39714b920041cb02c184686a3dee24905aaa8105d6 +importlib-resources==6.4.0 \ + --hash=sha256:50d10f043df931902d4194ea07ec57960f66a80449ff867bfe782b4c486ba78c \ + --hash=sha256:cdb2b453b8046ca4e3798eb1d84f3cce1446a0e8e7b5ef4efb600f19fc398145 # via # -r ./requirements.in # jsonschema @@ -37,140 +37,140 @@ iniconfig==2.0.0 \ --hash=sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3 \ --hash=sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374 # via pytest -jsonschema==4.21.0 \ - --hash=sha256:3ba18e27f7491ea4a1b22edce00fb820eec968d397feb3f9cb61d5894bb38167 \ - --hash=sha256:70a09719d375c0a2874571b363c8a24be7df8071b80c9aa76bc4551e7297c63c +jsonschema==4.22.0 \ + --hash=sha256:5b22d434a45935119af990552c862e5d6d564e8f6601206b305a61fdf661a2b7 \ + --hash=sha256:ff4cfd6b1367a40e7bc6411caec72effadd3db0bbe5017de188f2d6108335802 # via -r ./requirements.in jsonschema-specifications==2023.12.1 \ --hash=sha256:48a76787b3e70f5ed53f1160d2b81f586e4ca6d1548c5de7085d1682674764cc \ --hash=sha256:87e4fdf3a94858b8a2ba2778d9ba57d8a9cafca7c7489c46ba0d30a8bc6a9c3c # via jsonschema -packaging==23.2 \ - --hash=sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5 \ - --hash=sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7 +packaging==24.0 \ + --hash=sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5 \ + --hash=sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9 # via pytest pkgutil-resolve-name==1.3.10 \ --hash=sha256:357d6c9e6a755653cfd78893817c0853af365dd51ec97f3d358a819373bbd174 \ --hash=sha256:ca27cc078d25c5ad71a9de0a7a330146c4e014c2462d9af19c6b828280649c5e # via jsonschema -pluggy==1.3.0 \ - --hash=sha256:cf61ae8f126ac6f7c451172cf30e3e43d3ca77615509771b3a984a0730651e12 \ - --hash=sha256:d89c696a773f8bd377d18e5ecda92b7a3793cbe66c87060a6fb58c7b6e1061f7 +pluggy==1.5.0 \ + --hash=sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1 \ + --hash=sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669 # via pytest pyhamcrest==2.1.0 \ --hash=sha256:c6acbec0923d0cb7e72c22af1926f3e7c97b8e8d69fc7498eabacaf7c975bd9c \ --hash=sha256:f6913d2f392e30e0375b3ecbd7aee79e5d1faa25d345c8f4ff597665dcac2587 # via -r ./requirements.in -pytest==7.4.4 \ - --hash=sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280 \ - --hash=sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8 +pytest==8.2.2 \ + --hash=sha256:c434598117762e2bd304e526244f67bf66bbd7b5d6cf22138be51ff661980343 \ + --hash=sha256:de4bb8104e201939ccdc688b27a89a7be2079b22e2bd2b07f806b6ba71117977 # via -r ./requirements.in -referencing==0.32.1 \ - --hash=sha256:3c57da0513e9563eb7e203ebe9bb3a1b509b042016433bd1e45a2853466c3dd3 \ - --hash=sha256:7e4dc12271d8e15612bfe35792f5ea1c40970dadf8624602e33db2758f7ee554 +referencing==0.35.1 \ + --hash=sha256:25b42124a6c8b632a425174f24087783efb348a6f1e0008e63cd4466fedf703c \ + --hash=sha256:eda6d3234d62814d1c64e305c1331c9a3a6132da475ab6382eaa997b21ee75de # via # jsonschema # jsonschema-specifications -rpds-py==0.17.1 \ - --hash=sha256:01f58a7306b64e0a4fe042047dd2b7d411ee82e54240284bab63e325762c1147 \ - --hash=sha256:0210b2668f24c078307260bf88bdac9d6f1093635df5123789bfee4d8d7fc8e7 \ - --hash=sha256:02866e060219514940342a1f84303a1ef7a1dad0ac311792fbbe19b521b489d2 \ - --hash=sha256:0387ce69ba06e43df54e43968090f3626e231e4bc9150e4c3246947567695f68 \ - --hash=sha256:060f412230d5f19fc8c8b75f315931b408d8ebf56aec33ef4168d1b9e54200b1 \ - --hash=sha256:071bc28c589b86bc6351a339114fb7a029f5cddbaca34103aa573eba7b482382 \ - --hash=sha256:0bfb09bf41fe7c51413f563373e5f537eaa653d7adc4830399d4e9bdc199959d \ - --hash=sha256:10162fe3f5f47c37ebf6d8ff5a2368508fe22007e3077bf25b9c7d803454d921 \ - --hash=sha256:149c5cd24f729e3567b56e1795f74577aa3126c14c11e457bec1b1c90d212e38 \ - --hash=sha256:1701fc54460ae2e5efc1dd6350eafd7a760f516df8dbe51d4a1c79d69472fbd4 \ - --hash=sha256:1957a2ab607f9added64478a6982742eb29f109d89d065fa44e01691a20fc20a \ - --hash=sha256:1a746a6d49665058a5896000e8d9d2f1a6acba8a03b389c1e4c06e11e0b7f40d \ - --hash=sha256:1bfcad3109c1e5ba3cbe2f421614e70439f72897515a96c462ea657261b96518 \ - --hash=sha256:1d36b2b59e8cc6e576f8f7b671e32f2ff43153f0ad6d0201250a7c07f25d570e \ - --hash=sha256:1db228102ab9d1ff4c64148c96320d0be7044fa28bd865a9ce628ce98da5973d \ - --hash=sha256:1dc29db3900cb1bb40353772417800f29c3d078dbc8024fd64655a04ee3c4bdf \ - --hash=sha256:1e626b365293a2142a62b9a614e1f8e331b28f3ca57b9f05ebbf4cf2a0f0bdc5 \ - --hash=sha256:1f3c3461ebb4c4f1bbc70b15d20b565759f97a5aaf13af811fcefc892e9197ba \ - --hash=sha256:20de7b7179e2031a04042e85dc463a93a82bc177eeba5ddd13ff746325558aa6 \ - --hash=sha256:24e4900a6643f87058a27320f81336d527ccfe503984528edde4bb660c8c8d59 \ - --hash=sha256:2528ff96d09f12e638695f3a2e0c609c7b84c6df7c5ae9bfeb9252b6fa686253 \ - --hash=sha256:25f071737dae674ca8937a73d0f43f5a52e92c2d178330b4c0bb6ab05586ffa6 \ - --hash=sha256:270987bc22e7e5a962b1094953ae901395e8c1e1e83ad016c5cfcfff75a15a3f \ - --hash=sha256:292f7344a3301802e7c25c53792fae7d1593cb0e50964e7bcdcc5cf533d634e3 \ - --hash=sha256:2953937f83820376b5979318840f3ee47477d94c17b940fe31d9458d79ae7eea \ - --hash=sha256:2a792b2e1d3038daa83fa474d559acfd6dc1e3650ee93b2662ddc17dbff20ad1 \ - --hash=sha256:2a7b2f2f56a16a6d62e55354dd329d929560442bd92e87397b7a9586a32e3e76 \ - --hash=sha256:2f4eb548daf4836e3b2c662033bfbfc551db58d30fd8fe660314f86bf8510b93 \ - --hash=sha256:3664d126d3388a887db44c2e293f87d500c4184ec43d5d14d2d2babdb4c64cad \ - --hash=sha256:3677fcca7fb728c86a78660c7fb1b07b69b281964673f486ae72860e13f512ad \ - --hash=sha256:380e0df2e9d5d5d339803cfc6d183a5442ad7ab3c63c2a0982e8c824566c5ccc \ - --hash=sha256:3ac732390d529d8469b831949c78085b034bff67f584559340008d0f6041a049 \ - --hash=sha256:4128980a14ed805e1b91a7ed551250282a8ddf8201a4e9f8f5b7e6225f54170d \ - --hash=sha256:4341bd7579611cf50e7b20bb8c2e23512a3dc79de987a1f411cb458ab670eb90 \ - --hash=sha256:436474f17733c7dca0fbf096d36ae65277e8645039df12a0fa52445ca494729d \ - --hash=sha256:4dc889a9d8a34758d0fcc9ac86adb97bab3fb7f0c4d29794357eb147536483fd \ - --hash=sha256:4e21b76075c01d65d0f0f34302b5a7457d95721d5e0667aea65e5bb3ab415c25 \ - --hash=sha256:516fb8c77805159e97a689e2f1c80655c7658f5af601c34ffdb916605598cda2 \ - --hash=sha256:5576ee2f3a309d2bb403ec292d5958ce03953b0e57a11d224c1f134feaf8c40f \ - --hash=sha256:5a024fa96d541fd7edaa0e9d904601c6445e95a729a2900c5aec6555fe921ed6 \ - --hash=sha256:5d0e8a6434a3fbf77d11448c9c25b2f25244226cfbec1a5159947cac5b8c5fa4 \ - --hash=sha256:5e7d63ec01fe7c76c2dbb7e972fece45acbb8836e72682bde138e7e039906e2c \ - --hash=sha256:60e820ee1004327609b28db8307acc27f5f2e9a0b185b2064c5f23e815f248f8 \ - --hash=sha256:637b802f3f069a64436d432117a7e58fab414b4e27a7e81049817ae94de45d8d \ - --hash=sha256:65dcf105c1943cba45d19207ef51b8bc46d232a381e94dd38719d52d3980015b \ - --hash=sha256:698ea95a60c8b16b58be9d854c9f993c639f5c214cf9ba782eca53a8789d6b19 \ - --hash=sha256:70fcc6c2906cfa5c6a552ba7ae2ce64b6c32f437d8f3f8eea49925b278a61453 \ - --hash=sha256:720215373a280f78a1814becb1312d4e4d1077b1202a56d2b0815e95ccb99ce9 \ - --hash=sha256:7450dbd659fed6dd41d1a7d47ed767e893ba402af8ae664c157c255ec6067fde \ - --hash=sha256:7b7d9ca34542099b4e185b3c2a2b2eda2e318a7dbde0b0d83357a6d4421b5296 \ - --hash=sha256:7fbd70cb8b54fe745301921b0816c08b6d917593429dfc437fd024b5ba713c58 \ - --hash=sha256:81038ff87a4e04c22e1d81f947c6ac46f122e0c80460b9006e6517c4d842a6ec \ - --hash=sha256:810685321f4a304b2b55577c915bece4c4a06dfe38f6e62d9cc1d6ca8ee86b99 \ - --hash=sha256:82ada4a8ed9e82e443fcef87e22a3eed3654dd3adf6e3b3a0deb70f03e86142a \ - --hash=sha256:841320e1841bb53fada91c9725e766bb25009cfd4144e92298db296fb6c894fb \ - --hash=sha256:8587fd64c2a91c33cdc39d0cebdaf30e79491cc029a37fcd458ba863f8815383 \ - --hash=sha256:8ffe53e1d8ef2520ebcf0c9fec15bb721da59e8ef283b6ff3079613b1e30513d \ - --hash=sha256:9051e3d2af8f55b42061603e29e744724cb5f65b128a491446cc029b3e2ea896 \ - --hash=sha256:91e5a8200e65aaac342a791272c564dffcf1281abd635d304d6c4e6b495f29dc \ - --hash=sha256:93432e747fb07fa567ad9cc7aaadd6e29710e515aabf939dfbed8046041346c6 \ - --hash=sha256:938eab7323a736533f015e6069a7d53ef2dcc841e4e533b782c2bfb9fb12d84b \ - --hash=sha256:9584f8f52010295a4a417221861df9bea4c72d9632562b6e59b3c7b87a1522b7 \ - --hash=sha256:9737bdaa0ad33d34c0efc718741abaafce62fadae72c8b251df9b0c823c63b22 \ - --hash=sha256:99da0a4686ada4ed0f778120a0ea8d066de1a0a92ab0d13ae68492a437db78bf \ - --hash=sha256:99f567dae93e10be2daaa896e07513dd4bf9c2ecf0576e0533ac36ba3b1d5394 \ - --hash=sha256:9bdf1303df671179eaf2cb41e8515a07fc78d9d00f111eadbe3e14262f59c3d0 \ - --hash=sha256:9f0e4dc0f17dcea4ab9d13ac5c666b6b5337042b4d8f27e01b70fae41dd65c57 \ - --hash=sha256:a000133a90eea274a6f28adc3084643263b1e7c1a5a66eb0a0a7a36aa757ed74 \ - --hash=sha256:a3264e3e858de4fc601741498215835ff324ff2482fd4e4af61b46512dd7fc83 \ - --hash=sha256:a71169d505af63bb4d20d23a8fbd4c6ce272e7bce6cc31f617152aa784436f29 \ - --hash=sha256:a967dd6afda7715d911c25a6ba1517975acd8d1092b2f326718725461a3d33f9 \ - --hash=sha256:aa5bfb13f1e89151ade0eb812f7b0d7a4d643406caaad65ce1cbabe0a66d695f \ - --hash=sha256:ae35e8e6801c5ab071b992cb2da958eee76340e6926ec693b5ff7d6381441745 \ - --hash=sha256:b686f25377f9c006acbac63f61614416a6317133ab7fafe5de5f7dc8a06d42eb \ - --hash=sha256:b760a56e080a826c2e5af09002c1a037382ed21d03134eb6294812dda268c811 \ - --hash=sha256:b86b21b348f7e5485fae740d845c65a880f5d1eda1e063bc59bef92d1f7d0c55 \ - --hash=sha256:b9412abdf0ba70faa6e2ee6c0cc62a8defb772e78860cef419865917d86c7342 \ - --hash=sha256:bd345a13ce06e94c753dab52f8e71e5252aec1e4f8022d24d56decd31e1b9b23 \ - --hash=sha256:be22ae34d68544df293152b7e50895ba70d2a833ad9566932d750d3625918b82 \ - --hash=sha256:bf046179d011e6114daf12a534d874958b039342b347348a78b7cdf0dd9d6041 \ - --hash=sha256:c3d2010656999b63e628a3c694f23020322b4178c450dc478558a2b6ef3cb9bb \ - --hash=sha256:c64602e8be701c6cfe42064b71c84ce62ce66ddc6422c15463fd8127db3d8066 \ - --hash=sha256:d65e6b4f1443048eb7e833c2accb4fa7ee67cc7d54f31b4f0555b474758bee55 \ - --hash=sha256:d8bbd8e56f3ba25a7d0cf980fc42b34028848a53a0e36c9918550e0280b9d0b6 \ - --hash=sha256:da1ead63368c04a9bded7904757dfcae01eba0e0f9bc41d3d7f57ebf1c04015a \ - --hash=sha256:dbbb95e6fc91ea3102505d111b327004d1c4ce98d56a4a02e82cd451f9f57140 \ - --hash=sha256:dbc56680ecf585a384fbd93cd42bc82668b77cb525343170a2d86dafaed2a84b \ - --hash=sha256:df3b6f45ba4515632c5064e35ca7f31d51d13d1479673185ba8f9fefbbed58b9 \ - --hash=sha256:dfe07308b311a8293a0d5ef4e61411c5c20f682db6b5e73de6c7c8824272c256 \ - --hash=sha256:e796051f2070f47230c745d0a77a91088fbee2cc0502e9b796b9c6471983718c \ - --hash=sha256:efa767c220d94aa4ac3a6dd3aeb986e9f229eaf5bce92d8b1b3018d06bed3772 \ - --hash=sha256:f0b8bf5b8db49d8fd40f54772a1dcf262e8be0ad2ab0206b5a2ec109c176c0a4 \ - --hash=sha256:f175e95a197f6a4059b50757a3dca33b32b61691bdbd22c29e8a8d21d3914cae \ - --hash=sha256:f2f3b28b40fddcb6c1f1f6c88c6f3769cd933fa493ceb79da45968a21dccc920 \ - --hash=sha256:f6c43b6f97209e370124baf2bf40bb1e8edc25311a158867eb1c3a5d449ebc7a \ - --hash=sha256:f7f4cb1f173385e8a39c29510dd11a78bf44e360fb75610594973f5ea141028b \ - --hash=sha256:fad059a4bd14c45776600d223ec194e77db6c20255578bb5bcdd7c18fd169361 \ - --hash=sha256:ff1dcb8e8bc2261a088821b2595ef031c91d499a0c1b031c152d43fe0a6ecec8 \ - --hash=sha256:ffee088ea9b593cc6160518ba9bd319b5475e5f3e578e4552d63818773c6f56a +rpds-py==0.18.1 \ + --hash=sha256:05f3d615099bd9b13ecf2fc9cf2d839ad3f20239c678f461c753e93755d629ee \ + --hash=sha256:06d218939e1bf2ca50e6b0ec700ffe755e5216a8230ab3e87c059ebb4ea06afc \ + --hash=sha256:07f2139741e5deb2c5154a7b9629bc5aa48c766b643c1a6750d16f865a82c5fc \ + --hash=sha256:08d74b184f9ab6289b87b19fe6a6d1a97fbfea84b8a3e745e87a5de3029bf944 \ + --hash=sha256:0abeee75434e2ee2d142d650d1e54ac1f8b01e6e6abdde8ffd6eeac6e9c38e20 \ + --hash=sha256:154bf5c93d79558b44e5b50cc354aa0459e518e83677791e6adb0b039b7aa6a7 \ + --hash=sha256:17c6d2155e2423f7e79e3bb18151c686d40db42d8645e7977442170c360194d4 \ + --hash=sha256:1805d5901779662d599d0e2e4159d8a82c0b05faa86ef9222bf974572286b2b6 \ + --hash=sha256:19ba472b9606c36716062c023afa2484d1e4220548751bda14f725a7de17b4f6 \ + --hash=sha256:19e515b78c3fc1039dd7da0a33c28c3154458f947f4dc198d3c72db2b6b5dc93 \ + --hash=sha256:1d54f74f40b1f7aaa595a02ff42ef38ca654b1469bef7d52867da474243cc633 \ + --hash=sha256:207c82978115baa1fd8d706d720b4a4d2b0913df1c78c85ba73fe6c5804505f0 \ + --hash=sha256:2625f03b105328729f9450c8badda34d5243231eef6535f80064d57035738360 \ + --hash=sha256:27bba383e8c5231cd559affe169ca0b96ec78d39909ffd817f28b166d7ddd4d8 \ + --hash=sha256:2c3caec4ec5cd1d18e5dd6ae5194d24ed12785212a90b37f5f7f06b8bedd7139 \ + --hash=sha256:2cc7c1a47f3a63282ab0f422d90ddac4aa3034e39fc66a559ab93041e6505da7 \ + --hash=sha256:2fc24a329a717f9e2448f8cd1f960f9dac4e45b6224d60734edeb67499bab03a \ + --hash=sha256:312fe69b4fe1ffbe76520a7676b1e5ac06ddf7826d764cc10265c3b53f96dbe9 \ + --hash=sha256:32b7daaa3e9389db3695964ce8e566e3413b0c43e3394c05e4b243a4cd7bef26 \ + --hash=sha256:338dee44b0cef8b70fd2ef54b4e09bb1b97fc6c3a58fea5db6cc083fd9fc2724 \ + --hash=sha256:352a88dc7892f1da66b6027af06a2e7e5d53fe05924cc2cfc56495b586a10b72 \ + --hash=sha256:35b2b771b13eee8729a5049c976197ff58a27a3829c018a04341bcf1ae409b2b \ + --hash=sha256:38e14fb4e370885c4ecd734f093a2225ee52dc384b86fa55fe3f74638b2cfb09 \ + --hash=sha256:3c20f05e8e3d4fc76875fc9cb8cf24b90a63f5a1b4c5b9273f0e8225e169b100 \ + --hash=sha256:3dd3cd86e1db5aadd334e011eba4e29d37a104b403e8ca24dcd6703c68ca55b3 \ + --hash=sha256:489bdfe1abd0406eba6b3bb4fdc87c7fa40f1031de073d0cfb744634cc8fa261 \ + --hash=sha256:48c2faaa8adfacefcbfdb5f2e2e7bdad081e5ace8d182e5f4ade971f128e6bb3 \ + --hash=sha256:4a98a1f0552b5f227a3d6422dbd61bc6f30db170939bd87ed14f3c339aa6c7c9 \ + --hash=sha256:4adec039b8e2928983f885c53b7cc4cda8965b62b6596501a0308d2703f8af1b \ + --hash=sha256:4e0ee01ad8260184db21468a6e1c37afa0529acc12c3a697ee498d3c2c4dcaf3 \ + --hash=sha256:51584acc5916212e1bf45edd17f3a6b05fe0cbb40482d25e619f824dccb679de \ + --hash=sha256:531796fb842b53f2695e94dc338929e9f9dbf473b64710c28af5a160b2a8927d \ + --hash=sha256:5463c47c08630007dc0fe99fb480ea4f34a89712410592380425a9b4e1611d8e \ + --hash=sha256:5c45a639e93a0c5d4b788b2613bd637468edd62f8f95ebc6fcc303d58ab3f0a8 \ + --hash=sha256:6031b25fb1b06327b43d841f33842b383beba399884f8228a6bb3df3088485ff \ + --hash=sha256:607345bd5912aacc0c5a63d45a1f73fef29e697884f7e861094e443187c02be5 \ + --hash=sha256:618916f5535784960f3ecf8111581f4ad31d347c3de66d02e728de460a46303c \ + --hash=sha256:636a15acc588f70fda1661234761f9ed9ad79ebed3f2125d44be0862708b666e \ + --hash=sha256:673fdbbf668dd958eff750e500495ef3f611e2ecc209464f661bc82e9838991e \ + --hash=sha256:6afd80f6c79893cfc0574956f78a0add8c76e3696f2d6a15bca2c66c415cf2d4 \ + --hash=sha256:6b5ff7e1d63a8281654b5e2896d7f08799378e594f09cf3674e832ecaf396ce8 \ + --hash=sha256:6c4c4c3f878df21faf5fac86eda32671c27889e13570645a9eea0a1abdd50922 \ + --hash=sha256:6cd8098517c64a85e790657e7b1e509b9fe07487fd358e19431cb120f7d96338 \ + --hash=sha256:6d1e42d2735d437e7e80bab4d78eb2e459af48c0a46e686ea35f690b93db792d \ + --hash=sha256:6e30ac5e329098903262dc5bdd7e2086e0256aa762cc8b744f9e7bf2a427d3f8 \ + --hash=sha256:70a838f7754483bcdc830444952fd89645569e7452e3226de4a613a4c1793fb2 \ + --hash=sha256:720edcb916df872d80f80a1cc5ea9058300b97721efda8651efcd938a9c70a72 \ + --hash=sha256:732672fbc449bab754e0b15356c077cc31566df874964d4801ab14f71951ea80 \ + --hash=sha256:740884bc62a5e2bbb31e584f5d23b32320fd75d79f916f15a788d527a5e83644 \ + --hash=sha256:7700936ef9d006b7ef605dc53aa364da2de5a3aa65516a1f3ce73bf82ecfc7ae \ + --hash=sha256:7732770412bab81c5a9f6d20aeb60ae943a9b36dcd990d876a773526468e7163 \ + --hash=sha256:7750569d9526199c5b97e5a9f8d96a13300950d910cf04a861d96f4273d5b104 \ + --hash=sha256:7f1944ce16401aad1e3f7d312247b3d5de7981f634dc9dfe90da72b87d37887d \ + --hash=sha256:81c5196a790032e0fc2464c0b4ab95f8610f96f1f2fa3d4deacce6a79852da60 \ + --hash=sha256:8352f48d511de5f973e4f2f9412736d7dea76c69faa6d36bcf885b50c758ab9a \ + --hash=sha256:8927638a4d4137a289e41d0fd631551e89fa346d6dbcfc31ad627557d03ceb6d \ + --hash=sha256:8c7672e9fba7425f79019db9945b16e308ed8bc89348c23d955c8c0540da0a07 \ + --hash=sha256:8d2e182c9ee01135e11e9676e9a62dfad791a7a467738f06726872374a83db49 \ + --hash=sha256:910e71711d1055b2768181efa0a17537b2622afeb0424116619817007f8a2b10 \ + --hash=sha256:942695a206a58d2575033ff1e42b12b2aece98d6003c6bc739fbf33d1773b12f \ + --hash=sha256:9437ca26784120a279f3137ee080b0e717012c42921eb07861b412340f85bae2 \ + --hash=sha256:967342e045564cef76dfcf1edb700b1e20838d83b1aa02ab313e6a497cf923b8 \ + --hash=sha256:998125738de0158f088aef3cb264a34251908dd2e5d9966774fdab7402edfab7 \ + --hash=sha256:9e6934d70dc50f9f8ea47081ceafdec09245fd9f6032669c3b45705dea096b88 \ + --hash=sha256:a3d456ff2a6a4d2adcdf3c1c960a36f4fd2fec6e3b4902a42a384d17cf4e7a65 \ + --hash=sha256:a7b28c5b066bca9a4eb4e2f2663012debe680f097979d880657f00e1c30875a0 \ + --hash=sha256:a888e8bdb45916234b99da2d859566f1e8a1d2275a801bb8e4a9644e3c7e7909 \ + --hash=sha256:aa3679e751408d75a0b4d8d26d6647b6d9326f5e35c00a7ccd82b78ef64f65f8 \ + --hash=sha256:aaa71ee43a703c321906813bb252f69524f02aa05bf4eec85f0c41d5d62d0f4c \ + --hash=sha256:b646bf655b135ccf4522ed43d6902af37d3f5dbcf0da66c769a2b3938b9d8184 \ + --hash=sha256:b906b5f58892813e5ba5c6056d6a5ad08f358ba49f046d910ad992196ea61397 \ + --hash=sha256:b9bb1f182a97880f6078283b3505a707057c42bf55d8fca604f70dedfdc0772a \ + --hash=sha256:bd1105b50ede37461c1d51b9698c4f4be6e13e69a908ab7751e3807985fc0346 \ + --hash=sha256:bf18932d0003c8c4d51a39f244231986ab23ee057d235a12b2684ea26a353590 \ + --hash=sha256:c273e795e7a0f1fddd46e1e3cb8be15634c29ae8ff31c196debb620e1edb9333 \ + --hash=sha256:c69882964516dc143083d3795cb508e806b09fc3800fd0d4cddc1df6c36e76bb \ + --hash=sha256:c827576e2fa017a081346dce87d532a5310241648eb3700af9a571a6e9fc7e74 \ + --hash=sha256:cbfbea39ba64f5e53ae2915de36f130588bba71245b418060ec3330ebf85678e \ + --hash=sha256:ce0bb20e3a11bd04461324a6a798af34d503f8d6f1aa3d2aa8901ceaf039176d \ + --hash=sha256:d0cee71bc618cd93716f3c1bf56653740d2d13ddbd47673efa8bf41435a60daa \ + --hash=sha256:d21be4770ff4e08698e1e8e0bce06edb6ea0626e7c8f560bc08222880aca6a6f \ + --hash=sha256:d31dea506d718693b6b2cffc0648a8929bdc51c70a311b2770f09611caa10d53 \ + --hash=sha256:d44607f98caa2961bab4fa3c4309724b185b464cdc3ba6f3d7340bac3ec97cc1 \ + --hash=sha256:d58ad6317d188c43750cb76e9deacf6051d0f884d87dc6518e0280438648a9ac \ + --hash=sha256:d70129cef4a8d979caa37e7fe957202e7eee8ea02c5e16455bc9808a59c6b2f0 \ + --hash=sha256:d85164315bd68c0806768dc6bb0429c6f95c354f87485ee3593c4f6b14def2bd \ + --hash=sha256:d960de62227635d2e61068f42a6cb6aae91a7fe00fca0e3aeed17667c8a34611 \ + --hash=sha256:dc48b479d540770c811fbd1eb9ba2bb66951863e448efec2e2c102625328e92f \ + --hash=sha256:e1735502458621921cee039c47318cb90b51d532c2766593be6207eec53e5c4c \ + --hash=sha256:e2be6e9dd4111d5b31ba3b74d17da54a8319d8168890fbaea4b9e5c3de630ae5 \ + --hash=sha256:e4c39ad2f512b4041343ea3c7894339e4ca7839ac38ca83d68a832fc8b3748ab \ + --hash=sha256:ed402d6153c5d519a0faf1bb69898e97fb31613b49da27a84a13935ea9164dfc \ + --hash=sha256:ee17cd26b97d537af8f33635ef38be873073d516fd425e80559f4585a7b90c43 \ + --hash=sha256:f3027be483868c99b4985fda802a57a67fdf30c5d9a50338d9db646d590198da \ + --hash=sha256:f5bab211605d91db0e2995a17b5c6ee5edec1270e46223e513eaa20da20076ac \ + --hash=sha256:f6f8e3fecca256fefc91bb6765a693d96692459d7d4c644660a9fff32e517843 \ + --hash=sha256:f7afbfee1157e0f9376c00bb232e80a60e59ed716e3211a80cb8506550671e6e \ + --hash=sha256:fa242ac1ff583e4ec7771141606aafc92b361cd90a05c30d93e343a0c2d82a89 \ + --hash=sha256:fab6ce90574645a0d6c58890e9bcaac8d94dff54fb51c69e5522a7358b80ab64 # via # jsonschema # referencing @@ -178,11 +178,11 @@ tomli==2.0.1 \ --hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \ --hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f # via pytest -typing-extensions==4.9.0 \ - --hash=sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783 \ - --hash=sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd +typing-extensions==4.12.1 \ + --hash=sha256:6024b58b69089e5a89c347397254e35f1bf02a907728ec7fee9bf0fe837d203a \ + --hash=sha256:915f5e35ff76f56588223f15fdd5938f9a1cf9195c0de25130c627e4d597f6d1 # via cattrs -zipp==3.17.0 \ - --hash=sha256:0e923e726174922dce09c53c59ad483ff7bbb8e572e00c7f7c46b88556409f31 \ - --hash=sha256:84e64a1c28cf7e91ed2078bb8cc8c259cb19b76942096c8d7b84947690cabaf0 +zipp==3.19.2 \ + --hash=sha256:bf1dcf6450f873a13e952a29504887c89e6de7506209e5b1bcc3460135d4de19 \ + --hash=sha256:f091755f667055f2d02b32c53771a7a6c8b47e1fdbc4b72a8b9072b3eef8015c # via importlib-resources diff --git a/tests/python/notifications/test_progress.py b/tests/python/notifications/test_progress.py index b55e36d..3f7e918 100644 --- a/tests/python/notifications/test_progress.py +++ b/tests/python/notifications/test_progress.py @@ -6,6 +6,7 @@ import hamcrest import jsonrpc import pytest + from lsprotocol.types import ( ProgressNotification, ProgressParams, diff --git a/tests/python/requests/test_workspace_symbols_request.py b/tests/python/requests/test_workspace_symbols_request.py index ceddebb..7d30cbc 100644 --- a/tests/python/requests/test_workspace_symbols_request.py +++ b/tests/python/requests/test_workspace_symbols_request.py @@ -4,6 +4,7 @@ import hamcrest import pytest from cattrs import ClassValidationError + from lsprotocol import converters as cv from lsprotocol import types as lsp diff --git a/tests/python/test_cattrs_special_cases.py b/tests/python/test_cattrs_special_cases.py index cd4512c..c5e0e9c 100644 --- a/tests/python/test_cattrs_special_cases.py +++ b/tests/python/test_cattrs_special_cases.py @@ -7,6 +7,7 @@ import hamcrest import pytest from cattrs.errors import ClassValidationError + from lsprotocol import converters as cv from lsprotocol import types as lsp diff --git a/tests/python/test_custom_validators.py b/tests/python/test_custom_validators.py index b28333d..c7fe1bd 100644 --- a/tests/python/test_custom_validators.py +++ b/tests/python/test_custom_validators.py @@ -1,9 +1,10 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. +import pytest + import lsprotocol.types as lsp import lsprotocol.validators as v -import pytest @pytest.mark.parametrize( diff --git a/tests/python/test_enums.py b/tests/python/test_enums.py index de97827..3db64c1 100644 --- a/tests/python/test_enums.py +++ b/tests/python/test_enums.py @@ -3,6 +3,7 @@ import hamcrest import pytest + from lsprotocol import types as lsp diff --git a/tests/python/test_generated_data.py b/tests/python/test_generated_data.py index 46a3043..45dbcb2 100644 --- a/tests/python/test_generated_data.py +++ b/tests/python/test_generated_data.py @@ -5,9 +5,10 @@ import pathlib from typing import List, Union +import pytest + import lsprotocol.converters as cv import lsprotocol.types as lsp -import pytest TEST_DATA_ROOT = pathlib.Path(__file__).parent.parent.parent / "packages" / "testdata" diff --git a/tests/python/test_location.py b/tests/python/test_location.py index e65eb3e..1a8cd8f 100644 --- a/tests/python/test_location.py +++ b/tests/python/test_location.py @@ -3,6 +3,7 @@ import hamcrest import pytest + from lsprotocol import types as lsp diff --git a/tests/python/test_position.py b/tests/python/test_position.py index c149579..67bff8b 100644 --- a/tests/python/test_position.py +++ b/tests/python/test_position.py @@ -3,6 +3,7 @@ import hamcrest import pytest + from lsprotocol import types as lsp diff --git a/tests/python/test_range.py b/tests/python/test_range.py index 0a5801b..9977e95 100644 --- a/tests/python/test_range.py +++ b/tests/python/test_range.py @@ -3,6 +3,7 @@ import hamcrest import pytest + from lsprotocol import types as lsp