diff --git a/lsp_types.py b/lsp_types.py index 1b3efb9..beff62e 100644 --- a/lsp_types.py +++ b/lsp_types.py @@ -44,6 +44,8 @@ class SemanticTokenTypes(StrEnum): Operator = 'operator' Decorator = 'decorator' """ @since 3.17.0 """ + Label = 'label' + """ @since 3.18.0 """ class SemanticTokenModifiers(StrEnum): @@ -113,7 +115,7 @@ class LSPErrorCodes(IntEnum): If a client decides that a result is not of any use anymore the client should cancel the request. """ RequestCancelled = -32800 - """ The client has canceled a request and a server as detected + """ The client has canceled a request and a server has detected the cancel. """ @@ -1775,6 +1777,48 @@ class InlineCompletionRegistrationOptions(TypedDict): the request again. See also Registration#id. """ +class TextDocumentContentParams(TypedDict): + """ Parameters for the `workspace/textDocumentContent` request. + + @since 3.18.0 + @proposed """ + uri: 'DocumentUri' + """ The uri of the text document. """ + + +class TextDocumentContentResult(TypedDict): + """ Result of the `workspace/textDocumentContent` request. + + @since 3.18.0 + @proposed """ + text: str + """ The text content of the text document. Please note, that the content of + any subsequent open notifications for the text document might differ + from the returned content due to whitespace and line ending + normalizations done on the client """ + + +class TextDocumentContentRegistrationOptions(TypedDict): + """ Text document content provider registration options. + + @since 3.18.0 + @proposed """ + schemes: List[str] + """ The schemes for which the server provides content. """ + id: NotRequired[str] + """ The id used to register the request. The id can be used to deregister + the request again. See also Registration#id. """ + + +class TextDocumentContentRefreshParams(TypedDict): + """ Parameters for the `workspace/textDocumentContent/refresh` request. + + @since 3.18.0 + @proposed """ + uri: 'DocumentUri' + """ The uri of the text document to refresh. """ + + class RegistrationParams(TypedDict): registrations: List['Registration'] @@ -2562,7 +2606,13 @@ class WorkspaceSymbolParams(TypedDict): """ The parameters of a {@link WorkspaceSymbolRequest}. """ query: str """ A query string to filter symbols by. Clients may send an empty - string here to request all symbols. """ + string here to request all symbols. + + The `query`-parameter should be interpreted in a *relaxed way* as editors + will apply their own highlighting and scoring on the results. A good rule + of thumb is to match case-insensitive and to simply check that the + characters of *query* appear in their order in a candidate symbol. + Servers shouldn't use prefix, substring, or similar strict matching. """ workDoneToken: NotRequired['ProgressToken'] """ An optional token that a server can use to report work done progress. """ partialResultToken: NotRequired['ProgressToken'] @@ -3072,18 +3122,12 @@ class Position(TypedDict): @since 3.17.0 - support for negotiated position encoding. """ line: Uint - """ Line position in a document (zero-based). - - If a line number is greater than the number of lines in a document, it defaults back to the number of lines in the document. - If a line number is negative, it defaults to 0. """ + """ Line position in a document (zero-based). """ character: Uint """ Character offset on a line in a document (zero-based). The meaning of this offset is determined by the negotiated - `PositionEncodingKind`. - - If the character value is greater than the line length it defaults back to the - line length. """ + `PositionEncodingKind`. """ class SelectionRangeOptions(TypedDict): @@ -3592,6 +3636,15 @@ class InlineCompletionOptions(TypedDict): workDoneProgress: NotRequired[bool] +class TextDocumentContentOptions(TypedDict): + """ Text document content provider options. + + @since 3.18.0 + @proposed """ + schemes: List[str] + """ The schemes for which the server provides content. """ + + class Registration(TypedDict): """ General parameters to register for a notification or to register a provider. """ id: str @@ -3785,8 +3838,9 @@ class Diagnostic(TypedDict): range: 'Range' """ The range at which the message applies """ severity: NotRequired['DiagnosticSeverity'] - """ The diagnostic's severity. Can be omitted. If omitted it is up to the - client to interpret diagnostics as error, warning, info or hint. """ + """ The diagnostic's severity. To avoid interpretation mismatches when a + server is used with different clients it is highly recommended that servers + always provide a severity value. """ code: NotRequired[Union[int, str]] """ The diagnostic's code, which usually appear in the user interface. """ codeDescription: NotRequired['CodeDescription'] @@ -4477,6 +4531,11 @@ class WorkspaceOptions(TypedDict): """ The server is interested in notifications/requests for operations on files. @since 3.16.0 """ + textDocumentContent: NotRequired[Union['TextDocumentContentOptions', 'TextDocumentContentRegistrationOptions']] + """ The server supports the `workspace/textDocumentContent` request. + + @since 3.18.0 + @proposed """ class TextDocumentContentChangePartial(TypedDict): @@ -4696,6 +4755,11 @@ class WorkspaceClientCapabilities(TypedDict): @since 3.18.0 @proposed """ + textDocumentContent: NotRequired['TextDocumentContentClientCapabilities'] + """ Capabilities specific to the `workspace/textDocumentContent` request. + + @since 3.18.0 + @proposed """ class TextDocumentClientCapabilities(TypedDict): @@ -4919,8 +4983,10 @@ class TextDocumentFilterLanguage(TypedDict): """ A language id, like `typescript`. """ scheme: NotRequired[str] """ A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. """ - pattern: NotRequired[str] - """ A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. """ + pattern: NotRequired['GlobPattern'] + """ A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. + + @since 3.18.0 - support for relative patterns. """ class TextDocumentFilterScheme(TypedDict): @@ -4931,8 +4997,10 @@ class TextDocumentFilterScheme(TypedDict): """ A language id, like `typescript`. """ scheme: str """ A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. """ - pattern: NotRequired[str] - """ A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. """ + pattern: NotRequired['GlobPattern'] + """ A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. + + @since 3.18.0 - support for relative patterns. """ class TextDocumentFilterPattern(TypedDict): @@ -4943,8 +5011,10 @@ class TextDocumentFilterPattern(TypedDict): """ A language id, like `typescript`. """ scheme: NotRequired[str] """ A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. """ - pattern: str - """ A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. """ + pattern: 'GlobPattern' + """ A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. + + @since 3.18.0 - support for relative patterns. """ class NotebookDocumentFilterNotebookType(TypedDict): @@ -4955,7 +5025,7 @@ class NotebookDocumentFilterNotebookType(TypedDict): """ The type of the enclosing notebook. """ scheme: NotRequired[str] """ A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. """ - pattern: NotRequired[str] + pattern: NotRequired['GlobPattern'] """ A glob pattern. """ @@ -4967,7 +5037,7 @@ class NotebookDocumentFilterScheme(TypedDict): """ The type of the enclosing notebook. """ scheme: str """ A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. """ - pattern: NotRequired[str] + pattern: NotRequired['GlobPattern'] """ A glob pattern. """ @@ -4979,7 +5049,7 @@ class NotebookDocumentFilterPattern(TypedDict): """ The type of the enclosing notebook. """ scheme: NotRequired[str] """ A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. """ - pattern: str + pattern: 'GlobPattern' """ A glob pattern. """ @@ -5183,6 +5253,15 @@ class FoldingRangeWorkspaceClientCapabilities(TypedDict): @proposed """ +class TextDocumentContentClientCapabilities(TypedDict): + """ Client capabilities for a text document content provider. + + @since 3.18.0 + @proposed """ + dynamicRegistration: NotRequired[bool] + """ Text document content provider supports dynamic registration. """ + + class TextDocumentSyncClientCapabilities(TypedDict): dynamicRegistration: NotRequired[bool] """ Whether text document synchronization supports dynamic registration. """ @@ -5371,6 +5450,11 @@ class CodeLensClientCapabilities(TypedDict): """ The client capabilities of a {@link CodeLensRequest}. """ dynamicRegistration: NotRequired[bool] """ Whether code lens supports dynamic registration. """ + resolveSupport: NotRequired['ClientCodeLensResolveOptions'] + """ Whether the client supports resolving additional code lens + properties via a separate `codeLens/resolve` request. + + @since 3.18.0 """ class DocumentLinkClientCapabilities(TypedDict): @@ -5842,6 +5926,12 @@ class ClientCodeActionResolveOptions(TypedDict): """ The properties that a client can resolve lazily. """ +class ClientCodeLensResolveOptions(TypedDict): + """ @since 3.18.0 """ + properties: List[str] + """ The properties that a client can resolve lazily. """ + + class ClientFoldingRangeKindOptions(TypedDict): """ @since 3.18.0 """ valueSet: NotRequired[List['FoldingRangeKind']] @@ -5951,3 +6041,4 @@ class ClientSemanticTokensRequestFullDelta(TypedDict): delta: NotRequired[bool] """ The client will send the `textDocument/semanticTokens/full/delta` request if the server provides a corresponding handler. """ + diff --git a/lsp_types_sublime_text_33.py b/lsp_types_sublime_text_33.py index 1b1ef80..15e274d 100644 --- a/lsp_types_sublime_text_33.py +++ b/lsp_types_sublime_text_33.py @@ -44,6 +44,8 @@ class SemanticTokenTypes(StrEnum): Operator = 'operator' Decorator = 'decorator' """ @since 3.17.0 """ + Label = 'label' + """ @since 3.18.0 """ class SemanticTokenModifiers(StrEnum): @@ -113,7 +115,7 @@ class LSPErrorCodes(IntEnum): If a client decides that a result is not of any use anymore the client should cancel the request. """ RequestCancelled = -32800 - """ The client has canceled a request and a server as detected + """ The client has canceled a request and a server has detected the cancel. """ @@ -1853,6 +1855,52 @@ class TokenFormat(StrEnum): @proposed """ +TextDocumentContentParams = TypedDict('TextDocumentContentParams', { + # The uri of the text document. + 'uri': 'DocumentUri', +}) +""" Parameters for the `workspace/textDocumentContent` request. + +@since 3.18.0 +@proposed """ + + +TextDocumentContentResult = TypedDict('TextDocumentContentResult', { + # The text content of the text document. Please note, that the content of + # any subsequent open notifications for the text document might differ + # from the returned content due to whitespace and line ending + # normalizations done on the client + 'text': str, +}) +""" Result of the `workspace/textDocumentContent` request. + +@since 3.18.0 +@proposed """ + + +TextDocumentContentRegistrationOptions = TypedDict('TextDocumentContentRegistrationOptions', { + # The schemes for which the server provides content. + 'schemes': List[str], + # The id used to register the request. The id can be used to deregister + # the request again. See also Registration#id. + 'id': NotRequired[str], +}) +""" Text document content provider registration options. + +@since 3.18.0 +@proposed """ + + +TextDocumentContentRefreshParams = TypedDict('TextDocumentContentRefreshParams', { + # The uri of the text document to refresh. + 'uri': 'DocumentUri', +}) +""" Parameters for the `workspace/textDocumentContent/refresh` request. + +@since 3.18.0 +@proposed """ + + RegistrationParams = TypedDict('RegistrationParams', { 'registrations': List['Registration'], }) @@ -2687,6 +2735,12 @@ class TokenFormat(StrEnum): WorkspaceSymbolParams = TypedDict('WorkspaceSymbolParams', { # A query string to filter symbols by. Clients may send an empty # string here to request all symbols. + # + # The `query`-parameter should be interpreted in a *relaxed way* as editors + # will apply their own highlighting and scoring on the results. A good rule + # of thumb is to match case-insensitive and to simply check that the + # characters of *query* appear in their order in a candidate symbol. + # Servers shouldn't use prefix, substring, or similar strict matching. 'query': str, # An optional token that a server can use to report work done progress. 'workDoneToken': NotRequired['ProgressToken'], @@ -3216,17 +3270,11 @@ class TokenFormat(StrEnum): Position = TypedDict('Position', { # Line position in a document (zero-based). - # - # If a line number is greater than the number of lines in a document, it defaults back to the number of lines in the document. - # If a line number is negative, it defaults to 0. 'line': Uint, # Character offset on a line in a document (zero-based). # # The meaning of this offset is determined by the negotiated # `PositionEncodingKind`. - # - # If the character value is greater than the line length it defaults back to the - # line length. 'character': Uint, }) """ Position in a text document expressed as zero-based line and character @@ -3803,6 +3851,16 @@ class TokenFormat(StrEnum): @proposed """ +TextDocumentContentOptions = TypedDict('TextDocumentContentOptions', { + # The schemes for which the server provides content. + 'schemes': List[str], +}) +""" Text document content provider options. + +@since 3.18.0 +@proposed """ + + Registration = TypedDict('Registration', { # The id used to register the request. The id can be used to deregister # the request again. @@ -4002,8 +4060,9 @@ class TokenFormat(StrEnum): Diagnostic = TypedDict('Diagnostic', { # The range at which the message applies 'range': 'Range', - # The diagnostic's severity. Can be omitted. If omitted it is up to the - # client to interpret diagnostics as error, warning, info or hint. + # The diagnostic's severity. To avoid interpretation mismatches when a + # server is used with different clients it is highly recommended that servers + # always provide a severity value. 'severity': NotRequired['DiagnosticSeverity'], # The diagnostic's code, which usually appear in the user interface. 'code': NotRequired[Union[int, str]], @@ -4746,6 +4805,11 @@ class TokenFormat(StrEnum): # # @since 3.16.0 'fileOperations': NotRequired['FileOperationOptions'], + # The server supports the `workspace/textDocumentContent` request. + # + # @since 3.18.0 + # @proposed + 'textDocumentContent': NotRequired[Union['TextDocumentContentOptions', 'TextDocumentContentRegistrationOptions']], }) """ Defines workspace specific capabilities of the server. @@ -4983,6 +5047,11 @@ class TokenFormat(StrEnum): # @since 3.18.0 # @proposed 'foldingRange': NotRequired['FoldingRangeWorkspaceClientCapabilities'], + # Capabilities specific to the `workspace/textDocumentContent` request. + # + # @since 3.18.0 + # @proposed + 'textDocumentContent': NotRequired['TextDocumentContentClientCapabilities'], }) """ Workspace specific client capabilities. """ @@ -5213,7 +5282,9 @@ class TokenFormat(StrEnum): # A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 'scheme': NotRequired[str], # A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. - 'pattern': NotRequired[str], + # + # @since 3.18.0 - support for relative patterns. + 'pattern': NotRequired['GlobPattern'], }) """ A document filter where `language` is required field. @@ -5226,7 +5297,9 @@ class TokenFormat(StrEnum): # A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 'scheme': str, # A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. - 'pattern': NotRequired[str], + # + # @since 3.18.0 - support for relative patterns. + 'pattern': NotRequired['GlobPattern'], }) """ A document filter where `scheme` is required field. @@ -5239,7 +5312,9 @@ class TokenFormat(StrEnum): # A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 'scheme': NotRequired[str], # A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples. - 'pattern': str, + # + # @since 3.18.0 - support for relative patterns. + 'pattern': 'GlobPattern', }) """ A document filter where `pattern` is required field. @@ -5252,7 +5327,7 @@ class TokenFormat(StrEnum): # A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 'scheme': NotRequired[str], # A glob pattern. - 'pattern': NotRequired[str], + 'pattern': NotRequired['GlobPattern'], }) """ A notebook document filter where `notebookType` is required field. @@ -5265,7 +5340,7 @@ class TokenFormat(StrEnum): # A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 'scheme': str, # A glob pattern. - 'pattern': NotRequired[str], + 'pattern': NotRequired['GlobPattern'], }) """ A notebook document filter where `scheme` is required field. @@ -5278,7 +5353,7 @@ class TokenFormat(StrEnum): # A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. 'scheme': NotRequired[str], # A glob pattern. - 'pattern': str, + 'pattern': 'GlobPattern', }) """ A notebook document filter where `pattern` is required field. @@ -5498,6 +5573,16 @@ class TokenFormat(StrEnum): @proposed """ +TextDocumentContentClientCapabilities = TypedDict('TextDocumentContentClientCapabilities', { + # Text document content provider supports dynamic registration. + 'dynamicRegistration': NotRequired[bool], +}) +""" Client capabilities for a text document content provider. + +@since 3.18.0 +@proposed """ + + TextDocumentSyncClientCapabilities = TypedDict('TextDocumentSyncClientCapabilities', { # Whether text document synchronization supports dynamic registration. 'dynamicRegistration': NotRequired[bool], @@ -5697,6 +5782,11 @@ class TokenFormat(StrEnum): CodeLensClientCapabilities = TypedDict('CodeLensClientCapabilities', { # Whether code lens supports dynamic registration. 'dynamicRegistration': NotRequired[bool], + # Whether the client supports resolving additional code lens + # properties via a separate `codeLens/resolve` request. + # + # @since 3.18.0 + 'resolveSupport': NotRequired['ClientCodeLensResolveOptions'], }) """ The client capabilities of a {@link CodeLensRequest}. """ @@ -6204,6 +6294,13 @@ class TokenFormat(StrEnum): """ @since 3.18.0 """ +ClientCodeLensResolveOptions = TypedDict('ClientCodeLensResolveOptions', { + # The properties that a client can resolve lazily. + 'properties': List[str], +}) +""" @since 3.18.0 """ + + ClientFoldingRangeKindOptions = TypedDict('ClientFoldingRangeKindOptions', { # The folding range kind values the client supports. When this # property exists the client also guarantees that it will @@ -6326,3 +6423,4 @@ class TokenFormat(StrEnum): 'delta': NotRequired[bool], }) """ @since 3.18.0 """ + diff --git a/lsprotocol/lsp.json b/lsprotocol/lsp.json index 2351492..9ba25d3 100644 --- a/lsprotocol/lsp.json +++ b/lsprotocol/lsp.json @@ -5,6 +5,7 @@ "requests": [ { "method": "textDocument/implementation", + "typeName": "ImplementationRequest", "result": { "kind": "or", "items": [ @@ -57,6 +58,7 @@ }, { "method": "textDocument/typeDefinition", + "typeName": "TypeDefinitionRequest", "result": { "kind": "or", "items": [ @@ -109,6 +111,7 @@ }, { "method": "workspace/workspaceFolders", + "typeName": "WorkspaceFoldersRequest", "result": { "kind": "or", "items": [ @@ -130,6 +133,7 @@ }, { "method": "workspace/configuration", + "typeName": "ConfigurationRequest", "result": { "kind": "array", "element": { @@ -146,6 +150,7 @@ }, { "method": "textDocument/documentColor", + "typeName": "DocumentColorRequest", "result": { "kind": "array", "element": { @@ -173,6 +178,7 @@ }, { "method": "textDocument/colorPresentation", + "typeName": "ColorPresentationRequest", "result": { "kind": "array", "element": { @@ -209,6 +215,7 @@ }, { "method": "textDocument/foldingRange", + "typeName": "FoldingRangeRequest", "result": { "kind": "or", "items": [ @@ -245,6 +252,7 @@ }, { "method": "workspace/foldingRange/refresh", + "typeName": "FoldingRangeRefreshRequest", "result": { "kind": "base", "name": "null" @@ -256,6 +264,7 @@ }, { "method": "textDocument/declaration", + "typeName": "DeclarationRequest", "result": { "kind": "or", "items": [ @@ -308,6 +317,7 @@ }, { "method": "textDocument/selectionRange", + "typeName": "SelectionRangeRequest", "result": { "kind": "or", "items": [ @@ -344,6 +354,7 @@ }, { "method": "window/workDoneProgress/create", + "typeName": "WorkDoneProgressCreateRequest", "result": { "kind": "base", "name": "null" @@ -357,6 +368,7 @@ }, { "method": "textDocument/prepareCallHierarchy", + "typeName": "CallHierarchyPrepareRequest", "result": { "kind": "or", "items": [ @@ -387,6 +399,7 @@ }, { "method": "callHierarchy/incomingCalls", + "typeName": "CallHierarchyIncomingCallsRequest", "result": { "kind": "or", "items": [ @@ -420,6 +433,7 @@ }, { "method": "callHierarchy/outgoingCalls", + "typeName": "CallHierarchyOutgoingCallsRequest", "result": { "kind": "or", "items": [ @@ -453,6 +467,7 @@ }, { "method": "textDocument/semanticTokens/full", + "typeName": "SemanticTokensRequest", "result": { "kind": "or", "items": [ @@ -485,6 +500,7 @@ }, { "method": "textDocument/semanticTokens/full/delta", + "typeName": "SemanticTokensDeltaRequest", "result": { "kind": "or", "items": [ @@ -530,6 +546,7 @@ }, { "method": "textDocument/semanticTokens/range", + "typeName": "SemanticTokensRangeRequest", "result": { "kind": "or", "items": [ @@ -558,6 +575,7 @@ }, { "method": "workspace/semanticTokens/refresh", + "typeName": "SemanticTokensRefreshRequest", "result": { "kind": "base", "name": "null" @@ -568,6 +586,7 @@ }, { "method": "window/showDocument", + "typeName": "ShowDocumentRequest", "result": { "kind": "reference", "name": "ShowDocumentResult" @@ -582,6 +601,7 @@ }, { "method": "textDocument/linkedEditingRange", + "typeName": "LinkedEditingRangeRequest", "result": { "kind": "or", "items": [ @@ -609,6 +629,7 @@ }, { "method": "workspace/willCreateFiles", + "typeName": "WillCreateFilesRequest", "result": { "kind": "or", "items": [ @@ -636,6 +657,7 @@ }, { "method": "workspace/willRenameFiles", + "typeName": "WillRenameFilesRequest", "result": { "kind": "or", "items": [ @@ -663,6 +685,7 @@ }, { "method": "workspace/willDeleteFiles", + "typeName": "WillDeleteFilesRequest", "result": { "kind": "or", "items": [ @@ -690,6 +713,7 @@ }, { "method": "textDocument/moniker", + "typeName": "MonikerRequest", "result": { "kind": "or", "items": [ @@ -726,6 +750,7 @@ }, { "method": "textDocument/prepareTypeHierarchy", + "typeName": "TypeHierarchyPrepareRequest", "result": { "kind": "or", "items": [ @@ -756,6 +781,7 @@ }, { "method": "typeHierarchy/supertypes", + "typeName": "TypeHierarchySupertypesRequest", "result": { "kind": "or", "items": [ @@ -789,6 +815,7 @@ }, { "method": "typeHierarchy/subtypes", + "typeName": "TypeHierarchySubtypesRequest", "result": { "kind": "or", "items": [ @@ -822,6 +849,7 @@ }, { "method": "textDocument/inlineValue", + "typeName": "InlineValueRequest", "result": { "kind": "or", "items": [ @@ -859,6 +887,7 @@ }, { "method": "workspace/inlineValue/refresh", + "typeName": "InlineValueRefreshRequest", "result": { "kind": "base", "name": "null" @@ -869,6 +898,7 @@ }, { "method": "textDocument/inlayHint", + "typeName": "InlayHintRequest", "result": { "kind": "or", "items": [ @@ -906,6 +936,7 @@ }, { "method": "inlayHint/resolve", + "typeName": "InlayHintResolveRequest", "result": { "kind": "reference", "name": "InlayHint" @@ -920,6 +951,7 @@ }, { "method": "workspace/inlayHint/refresh", + "typeName": "InlayHintRefreshRequest", "result": { "kind": "base", "name": "null" @@ -930,6 +962,7 @@ }, { "method": "textDocument/diagnostic", + "typeName": "DocumentDiagnosticRequest", "result": { "kind": "reference", "name": "DocumentDiagnosticReport" @@ -956,6 +989,7 @@ }, { "method": "workspace/diagnostic", + "typeName": "WorkspaceDiagnosticRequest", "result": { "kind": "reference", "name": "WorkspaceDiagnosticReport" @@ -978,6 +1012,7 @@ }, { "method": "workspace/diagnostic/refresh", + "typeName": "DiagnosticRefreshRequest", "result": { "kind": "base", "name": "null" @@ -988,6 +1023,7 @@ }, { "method": "textDocument/inlineCompletion", + "typeName": "InlineCompletionRequest", "result": { "kind": "or", "items": [ @@ -1028,8 +1064,45 @@ "since": "3.18.0", "proposed": true }, + { + "method": "workspace/textDocumentContent", + "typeName": "TextDocumentContentRequest", + "result": { + "kind": "reference", + "name": "TextDocumentContentResult" + }, + "messageDirection": "clientToServer", + "params": { + "kind": "reference", + "name": "TextDocumentContentParams" + }, + "registrationOptions": { + "kind": "reference", + "name": "TextDocumentContentRegistrationOptions" + }, + "documentation": "The `workspace/textDocumentContent` request is sent from the client to the\nserver to request the content of a text document.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, + { + "method": "workspace/textDocumentContent/refresh", + "typeName": "TextDocumentContentRefreshRequest", + "result": { + "kind": "base", + "name": "null" + }, + "messageDirection": "serverToClient", + "params": { + "kind": "reference", + "name": "TextDocumentContentRefreshParams" + }, + "documentation": "The `workspace/textDocumentContent` request is sent from the server to the client to refresh\nthe content of a specific text document.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, { "method": "client/registerCapability", + "typeName": "RegistrationRequest", "result": { "kind": "base", "name": "null" @@ -1043,6 +1116,7 @@ }, { "method": "client/unregisterCapability", + "typeName": "UnregistrationRequest", "result": { "kind": "base", "name": "null" @@ -1056,6 +1130,7 @@ }, { "method": "initialize", + "typeName": "InitializeRequest", "result": { "kind": "reference", "name": "InitializeResult" @@ -1073,6 +1148,7 @@ }, { "method": "shutdown", + "typeName": "ShutdownRequest", "result": { "kind": "base", "name": "null" @@ -1082,6 +1158,7 @@ }, { "method": "window/showMessageRequest", + "typeName": "ShowMessageRequest", "result": { "kind": "or", "items": [ @@ -1104,6 +1181,7 @@ }, { "method": "textDocument/willSaveWaitUntil", + "typeName": "WillSaveTextDocumentWaitUntilRequest", "result": { "kind": "or", "items": [ @@ -1133,6 +1211,7 @@ }, { "method": "textDocument/completion", + "typeName": "CompletionRequest", "result": { "kind": "or", "items": [ @@ -1173,6 +1252,7 @@ }, { "method": "completionItem/resolve", + "typeName": "CompletionResolveRequest", "result": { "kind": "reference", "name": "CompletionItem" @@ -1186,6 +1266,7 @@ }, { "method": "textDocument/hover", + "typeName": "HoverRequest", "result": { "kind": "or", "items": [ @@ -1212,6 +1293,7 @@ }, { "method": "textDocument/signatureHelp", + "typeName": "SignatureHelpRequest", "result": { "kind": "or", "items": [ @@ -1237,6 +1319,7 @@ }, { "method": "textDocument/definition", + "typeName": "DefinitionRequest", "result": { "kind": "or", "items": [ @@ -1289,6 +1372,7 @@ }, { "method": "textDocument/references", + "typeName": "ReferencesRequest", "result": { "kind": "or", "items": [ @@ -1325,6 +1409,7 @@ }, { "method": "textDocument/documentHighlight", + "typeName": "DocumentHighlightRequest", "result": { "kind": "or", "items": [ @@ -1361,6 +1446,7 @@ }, { "method": "textDocument/documentSymbol", + "typeName": "DocumentSymbolRequest", "result": { "kind": "or", "items": [ @@ -1416,6 +1502,7 @@ }, { "method": "textDocument/codeAction", + "typeName": "CodeActionRequest", "result": { "kind": "or", "items": [ @@ -1470,6 +1557,7 @@ }, { "method": "codeAction/resolve", + "typeName": "CodeActionResolveRequest", "result": { "kind": "reference", "name": "CodeAction" @@ -1483,6 +1571,7 @@ }, { "method": "workspace/symbol", + "typeName": "WorkspaceSymbolRequest", "result": { "kind": "or", "items": [ @@ -1539,6 +1628,7 @@ }, { "method": "workspaceSymbol/resolve", + "typeName": "WorkspaceSymbolResolveRequest", "result": { "kind": "reference", "name": "WorkspaceSymbol" @@ -1553,6 +1643,7 @@ }, { "method": "textDocument/codeLens", + "typeName": "CodeLensRequest", "result": { "kind": "or", "items": [ @@ -1589,6 +1680,7 @@ }, { "method": "codeLens/resolve", + "typeName": "CodeLensResolveRequest", "result": { "kind": "reference", "name": "CodeLens" @@ -1602,6 +1694,7 @@ }, { "method": "workspace/codeLens/refresh", + "typeName": "CodeLensRefreshRequest", "result": { "kind": "base", "name": "null" @@ -1612,6 +1705,7 @@ }, { "method": "textDocument/documentLink", + "typeName": "DocumentLinkRequest", "result": { "kind": "or", "items": [ @@ -1648,6 +1742,7 @@ }, { "method": "documentLink/resolve", + "typeName": "DocumentLinkResolveRequest", "result": { "kind": "reference", "name": "DocumentLink" @@ -1661,6 +1756,7 @@ }, { "method": "textDocument/formatting", + "typeName": "DocumentFormattingRequest", "result": { "kind": "or", "items": [ @@ -1690,6 +1786,7 @@ }, { "method": "textDocument/rangeFormatting", + "typeName": "DocumentRangeFormattingRequest", "result": { "kind": "or", "items": [ @@ -1719,6 +1816,7 @@ }, { "method": "textDocument/rangesFormatting", + "typeName": "DocumentRangesFormattingRequest", "result": { "kind": "or", "items": [ @@ -1750,6 +1848,7 @@ }, { "method": "textDocument/onTypeFormatting", + "typeName": "DocumentOnTypeFormattingRequest", "result": { "kind": "or", "items": [ @@ -1779,6 +1878,7 @@ }, { "method": "textDocument/rename", + "typeName": "RenameRequest", "result": { "kind": "or", "items": [ @@ -1805,6 +1905,7 @@ }, { "method": "textDocument/prepareRename", + "typeName": "PrepareRenameRequest", "result": { "kind": "or", "items": [ @@ -1828,6 +1929,7 @@ }, { "method": "workspace/executeCommand", + "typeName": "ExecuteCommandRequest", "result": { "kind": "or", "items": [ @@ -1854,6 +1956,7 @@ }, { "method": "workspace/applyEdit", + "typeName": "ApplyWorkspaceEditRequest", "result": { "kind": "reference", "name": "ApplyWorkspaceEditResult" @@ -1869,6 +1972,7 @@ "notifications": [ { "method": "workspace/didChangeWorkspaceFolders", + "typeName": "DidChangeWorkspaceFoldersNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1878,6 +1982,7 @@ }, { "method": "window/workDoneProgress/cancel", + "typeName": "WorkDoneProgressCancelNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1887,6 +1992,7 @@ }, { "method": "workspace/didCreateFiles", + "typeName": "DidCreateFilesNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1901,6 +2007,7 @@ }, { "method": "workspace/didRenameFiles", + "typeName": "DidRenameFilesNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1915,6 +2022,7 @@ }, { "method": "workspace/didDeleteFiles", + "typeName": "DidDeleteFilesNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1929,6 +2037,7 @@ }, { "method": "notebookDocument/didOpen", + "typeName": "DidOpenNotebookDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1944,6 +2053,7 @@ }, { "method": "notebookDocument/didChange", + "typeName": "DidChangeNotebookDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1957,6 +2067,7 @@ }, { "method": "notebookDocument/didSave", + "typeName": "DidSaveNotebookDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1972,6 +2083,7 @@ }, { "method": "notebookDocument/didClose", + "typeName": "DidCloseNotebookDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1987,6 +2099,7 @@ }, { "method": "initialized", + "typeName": "InitializedNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -1996,11 +2109,13 @@ }, { "method": "exit", + "typeName": "ExitNotification", "messageDirection": "clientToServer", "documentation": "The exit event is sent from the client to the server to\nask the server to exit its process." }, { "method": "workspace/didChangeConfiguration", + "typeName": "DidChangeConfigurationNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -2014,6 +2129,7 @@ }, { "method": "window/showMessage", + "typeName": "ShowMessageNotification", "messageDirection": "serverToClient", "params": { "kind": "reference", @@ -2023,6 +2139,7 @@ }, { "method": "window/logMessage", + "typeName": "LogMessageNotification", "messageDirection": "serverToClient", "params": { "kind": "reference", @@ -2032,6 +2149,7 @@ }, { "method": "telemetry/event", + "typeName": "TelemetryEventNotification", "messageDirection": "serverToClient", "params": { "kind": "reference", @@ -2041,6 +2159,7 @@ }, { "method": "textDocument/didOpen", + "typeName": "DidOpenTextDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -2054,6 +2173,7 @@ }, { "method": "textDocument/didChange", + "typeName": "DidChangeTextDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -2067,6 +2187,7 @@ }, { "method": "textDocument/didClose", + "typeName": "DidCloseTextDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -2080,6 +2201,7 @@ }, { "method": "textDocument/didSave", + "typeName": "DidSaveTextDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -2093,6 +2215,7 @@ }, { "method": "textDocument/willSave", + "typeName": "WillSaveTextDocumentNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -2106,6 +2229,7 @@ }, { "method": "workspace/didChangeWatchedFiles", + "typeName": "DidChangeWatchedFilesNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -2119,6 +2243,7 @@ }, { "method": "textDocument/publishDiagnostics", + "typeName": "PublishDiagnosticsNotification", "messageDirection": "serverToClient", "params": { "kind": "reference", @@ -2128,6 +2253,7 @@ }, { "method": "$/setTrace", + "typeName": "SetTraceNotification", "messageDirection": "clientToServer", "params": { "kind": "reference", @@ -2136,6 +2262,7 @@ }, { "method": "$/logTrace", + "typeName": "LogTraceNotification", "messageDirection": "serverToClient", "params": { "kind": "reference", @@ -2144,6 +2271,7 @@ }, { "method": "$/cancelRequest", + "typeName": "CancelNotification", "messageDirection": "both", "params": { "kind": "reference", @@ -2152,6 +2280,7 @@ }, { "method": "$/progress", + "typeName": "ProgressNotification", "messageDirection": "both", "params": { "kind": "reference", @@ -4275,6 +4404,73 @@ "since": "3.18.0", "proposed": true }, + { + "name": "TextDocumentContentParams", + "properties": [ + { + "name": "uri", + "type": { + "kind": "base", + "name": "DocumentUri" + }, + "documentation": "The uri of the text document." + } + ], + "documentation": "Parameters for the `workspace/textDocumentContent` request.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, + { + "name": "TextDocumentContentResult", + "properties": [ + { + "name": "text", + "type": { + "kind": "base", + "name": "string" + }, + "documentation": "The text content of the text document. Please note, that the content of\nany subsequent open notifications for the text document might differ\nfrom the returned content due to whitespace and line ending\nnormalizations done on the client" + } + ], + "documentation": "Result of the `workspace/textDocumentContent` request.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, + { + "name": "TextDocumentContentRegistrationOptions", + "properties": [], + "extends": [ + { + "kind": "reference", + "name": "TextDocumentContentOptions" + } + ], + "mixins": [ + { + "kind": "reference", + "name": "StaticRegistrationOptions" + } + ], + "documentation": "Text document content provider registration options.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, + { + "name": "TextDocumentContentRefreshParams", + "properties": [ + { + "name": "uri", + "type": { + "kind": "base", + "name": "DocumentUri" + }, + "documentation": "The uri of the text document to refresh." + } + ], + "documentation": "Parameters for the `workspace/textDocumentContent/refresh` request.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, { "name": "RegistrationParams", "properties": [ @@ -5644,7 +5840,7 @@ "kind": "base", "name": "string" }, - "documentation": "A query string to filter symbols by. Clients may send an empty\nstring here to request all symbols." + "documentation": "A query string to filter symbols by. Clients may send an empty\nstring here to request all symbols.\n\nThe `query`-parameter should be interpreted in a *relaxed way* as editors\nwill apply their own highlighting and scoring on the results. A good rule\nof thumb is to match case-insensitive and to simply check that the\ncharacters of *query* appear in their order in a candidate symbol.\nServers shouldn't use prefix, substring, or similar strict matching." } ], "mixins": [ @@ -6696,7 +6892,7 @@ "kind": "base", "name": "uinteger" }, - "documentation": "Line position in a document (zero-based).\n\nIf a line number is greater than the number of lines in a document, it defaults back to the number of lines in the document.\nIf a line number is negative, it defaults to 0." + "documentation": "Line position in a document (zero-based)." }, { "name": "character", @@ -6704,7 +6900,7 @@ "kind": "base", "name": "uinteger" }, - "documentation": "Character offset on a line in a document (zero-based).\n\nThe meaning of this offset is determined by the negotiated\n`PositionEncodingKind`.\n\nIf the character value is greater than the line length it defaults back to the\nline length." + "documentation": "Character offset on a line in a document (zero-based).\n\nThe meaning of this offset is determined by the negotiated\n`PositionEncodingKind`." } ], "documentation": "Position in a text document expressed as zero-based line and character\noffset. Prior to 3.17 the offsets were always based on a UTF-16 string\nrepresentation. So a string of the form `a𐐀b` the character offset of the\ncharacter `a` is 0, the character offset of `𐐀` is 1 and the character\noffset of b is 3 since `𐐀` is represented using two code units in UTF-16.\nSince 3.17 clients and servers can agree on a different string encoding\nrepresentation (e.g. UTF-8). The client announces it's supported encoding\nvia the client capability [`general.positionEncodings`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#clientCapabilities).\nThe value is an array of position encodings the client supports, with\ndecreasing preference (e.g. the encoding at index `0` is the most preferred\none). To stay backwards compatible the only mandatory encoding is UTF-16\nrepresented via the string `utf-16`. The server can pick one of the\nencodings offered by the client and signals that encoding back to the\nclient via the initialize result's property\n[`capabilities.positionEncoding`](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#serverCapabilities). If the string value\n`utf-16` is missing from the client's capability `general.positionEncodings`\nservers can safely assume that the client supports UTF-16. If the server\nomits the position encoding in its initialize result the encoding defaults\nto the string value `utf-16`. Implementation considerations: since the\nconversion from one encoding into another requires the content of the\nfile / line the conversion is best done where the file is read which is\nusually on the server side.\n\nPositions are line end character agnostic. So you can not specify a position\nthat denotes `\\r|\\n` or `\\n|` where `|` represents the character offset.\n\n@since 3.17.0 - support for negotiated position encoding.", @@ -6885,7 +7081,11 @@ } }, "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." + "since": "3.18.0 - support for SnippetTextEdit. This is guarded using a\nclient capability.", + "sinceTags": [ + "3.16.0 - support for AnnotatedTextEdit. This is guarded using a\nclient capability.", + "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." @@ -7782,6 +7982,25 @@ "since": "3.18.0", "proposed": true }, + { + "name": "TextDocumentContentOptions", + "properties": [ + { + "name": "schemes", + "type": { + "kind": "array", + "element": { + "kind": "base", + "name": "string" + } + }, + "documentation": "The schemes for which the server provides content." + } + ], + "documentation": "Text document content provider options.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, { "name": "Registration", "properties": [ @@ -8629,7 +8848,11 @@ } ], "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." + "since": "3.18.0 ServerInfo type name added.", + "sinceTags": [ + "3.15.0", + "3.18.0 ServerInfo type name added." + ] }, { "name": "VersionedTextDocumentIdentifier", @@ -8729,7 +8952,7 @@ "name": "DiagnosticSeverity" }, "optional": true, - "documentation": "The diagnostic's severity. Can be omitted. If omitted it is up to the\nclient to interpret diagnostics as error, warning, info or hint." + "documentation": "The diagnostic's severity. To avoid interpretation mismatches when a\nserver is used with different clients it is highly recommended that servers\nalways provide a severity value." }, { "name": "code", @@ -10204,7 +10427,11 @@ } ], "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." + "since": "3.18.0 ClientInfo type name added.", + "sinceTags": [ + "3.15.0", + "3.18.0 ClientInfo type name added." + ] }, { "name": "ClientCapabilities", @@ -10349,6 +10576,26 @@ "optional": true, "documentation": "The server is interested in notifications/requests for operations on files.\n\n@since 3.16.0", "since": "3.16.0" + }, + { + "name": "textDocumentContent", + "type": { + "kind": "or", + "items": [ + { + "kind": "reference", + "name": "TextDocumentContentOptions" + }, + { + "kind": "reference", + "name": "TextDocumentContentRegistrationOptions" + } + ] + }, + "optional": true, + "documentation": "The server supports the `workspace/textDocumentContent` request.\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", @@ -10867,6 +11114,17 @@ "documentation": "Capabilities specific to the folding range requests scoped to the workspace.\n\n@since 3.18.0\n@proposed", "since": "3.18.0", "proposed": true + }, + { + "name": "textDocumentContent", + "type": { + "kind": "reference", + "name": "TextDocumentContentClientCapabilities" + }, + "optional": true, + "documentation": "Capabilities specific to the `workspace/textDocumentContent` request.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true } ], "documentation": "Workspace specific client capabilities." @@ -11421,11 +11679,12 @@ { "name": "pattern", "type": { - "kind": "base", - "name": "string" + "kind": "reference", + "name": "GlobPattern" }, "optional": true, - "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples." + "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns.", + "since": "3.18.0 - support for relative patterns." } ], "documentation": "A document filter where `language` is required field.\n\n@since 3.18.0", @@ -11454,11 +11713,12 @@ { "name": "pattern", "type": { - "kind": "base", - "name": "string" + "kind": "reference", + "name": "GlobPattern" }, "optional": true, - "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples." + "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns.", + "since": "3.18.0 - support for relative patterns." } ], "documentation": "A document filter where `scheme` is required field.\n\n@since 3.18.0", @@ -11488,10 +11748,11 @@ { "name": "pattern", "type": { - "kind": "base", - "name": "string" + "kind": "reference", + "name": "GlobPattern" }, - "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples." + "documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples.\n\n@since 3.18.0 - support for relative patterns.", + "since": "3.18.0 - support for relative patterns." } ], "documentation": "A document filter where `pattern` is required field.\n\n@since 3.18.0", @@ -11520,8 +11781,8 @@ { "name": "pattern", "type": { - "kind": "base", - "name": "string" + "kind": "reference", + "name": "GlobPattern" }, "optional": true, "documentation": "A glob pattern." @@ -11553,8 +11814,8 @@ { "name": "pattern", "type": { - "kind": "base", - "name": "string" + "kind": "reference", + "name": "GlobPattern" }, "optional": true, "documentation": "A glob pattern." @@ -11587,8 +11848,8 @@ { "name": "pattern", "type": { - "kind": "base", - "name": "string" + "kind": "reference", + "name": "GlobPattern" }, "documentation": "A glob pattern." } @@ -11976,6 +12237,23 @@ "since": "3.18.0", "proposed": true }, + { + "name": "TextDocumentContentClientCapabilities", + "properties": [ + { + "name": "dynamicRegistration", + "type": { + "kind": "base", + "name": "boolean" + }, + "optional": true, + "documentation": "Text document content provider supports dynamic registration." + } + ], + "documentation": "Client capabilities for a text document content provider.\n\n@since 3.18.0\n@proposed", + "since": "3.18.0", + "proposed": true + }, { "name": "TextDocumentSyncClientCapabilities", "properties": [ @@ -12418,6 +12696,16 @@ }, "optional": true, "documentation": "Whether code lens supports dynamic registration." + }, + { + "name": "resolveSupport", + "type": { + "kind": "reference", + "name": "ClientCodeLensResolveOptions" + }, + "optional": true, + "documentation": "Whether the client supports resolving additional code lens\nproperties via a separate `codeLens/resolve` request.\n\n@since 3.18.0", + "since": "3.18.0" } ], "documentation": "The client capabilities of a {@link CodeLensRequest}." @@ -13336,6 +13624,24 @@ "documentation": "@since 3.18.0", "since": "3.18.0" }, + { + "name": "ClientCodeLensResolveOptions", + "properties": [ + { + "name": "properties", + "type": { + "kind": "array", + "element": { + "kind": "base", + "name": "string" + } + }, + "documentation": "The properties that a client can resolve lazily." + } + ], + "documentation": "@since 3.18.0", + "since": "3.18.0" + }, { "name": "ClientFoldingRangeKindOptions", "properties": [ @@ -13721,6 +14027,12 @@ "value": "decorator", "documentation": "@since 3.17.0", "since": "3.17.0" + }, + { + "name": "label", + "value": "label", + "documentation": "@since 3.18.0", + "since": "3.18.0" } ], "supportsCustomValues": true, @@ -13867,7 +14179,7 @@ { "name": "RequestCancelled", "value": -32800, - "documentation": "The client has canceled a request and a server as detected\nthe cancel." + "documentation": "The client has canceled a request and a server has detected\nthe cancel." } ], "supportsCustomValues": true diff --git a/lsprotocol/lsp.schema.json b/lsprotocol/lsp.schema.json index 2d8f47d..d4a80da 100644 --- a/lsprotocol/lsp.schema.json +++ b/lsprotocol/lsp.schema.json @@ -114,6 +114,13 @@ "description": "Since when (release number) this enumeration is available. Is undefined if not known.", "type": "string" }, + "sinceTags": { + "description": "All since tags in case there was more than one tag. Is undefined if not known.", + "items": { + "type": "string" + }, + "type": "array" + }, "supportsCustomValues": { "description": "Whether the enumeration supports custom values (e.g. values which are not part of the set defined in `values`). If omitted no custom values are supported.", "type": "boolean" @@ -161,6 +168,13 @@ "description": "Since when (release number) this enumeration entry is available. Is undefined if not known.", "type": "string" }, + "sinceTags": { + "description": "All since tags in case there was more than one tag. Is undefined if not known.", + "items": { + "type": "string" + }, + "type": "array" + }, "value": { "description": "The value.", "type": [ @@ -361,7 +375,7 @@ "description": "The direction in which this notification is sent in the protocol." }, "method": { - "description": "The request's method name.", + "description": "The notifications's method name.", "type": "string" }, "params": { @@ -383,7 +397,7 @@ "type": "boolean" }, "registrationMethod": { - "description": "Optional a dynamic registration method if it different from the request's method.", + "description": "Optional a dynamic registration method if it different from the notifications's method.", "type": "string" }, "registrationOptions": { @@ -393,6 +407,17 @@ "since": { "description": "Since when (release number) this notification is available. Is undefined if not known.", "type": "string" + }, + "sinceTags": { + "description": "All since tags in case there was more than one tag. Is undefined if not known.", + "items": { + "type": "string" + }, + "type": "array" + }, + "typeName": { + "description": "The type name of the notifications if any.", + "type": "string" } }, "required": [ @@ -450,6 +475,13 @@ "description": "Since when (release number) this property is available. Is undefined if not known.", "type": "string" }, + "sinceTags": { + "description": "All since tags in case there was more than one tag. Is undefined if not known.", + "items": { + "type": "string" + }, + "type": "array" + }, "type": { "$ref": "#/definitions/Type", "description": "The type of the property" @@ -540,6 +572,17 @@ "since": { "description": "Since when (release number) this request is available. Is undefined if not known.", "type": "string" + }, + "sinceTags": { + "description": "All since tags in case there was more than one tag. Is undefined if not known.", + "items": { + "type": "string" + }, + "type": "array" + }, + "typeName": { + "description": "The type name of the request if any.", + "type": "string" } }, "required": [ @@ -611,6 +654,13 @@ "since": { "description": "Since when (release number) this structure is available. Is undefined if not known.", "type": "string" + }, + "sinceTags": { + "description": "All since tags in case there was more than one tag. Is undefined if not known.", + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ @@ -645,6 +695,13 @@ "since": { "description": "Since when (release number) this structure is available. Is undefined if not known.", "type": "string" + }, + "sinceTags": { + "description": "All since tags in case there was more than one tag. Is undefined if not known.", + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ @@ -752,6 +809,13 @@ "description": "Since when (release number) this structure is available. Is undefined if not known.", "type": "string" }, + "sinceTags": { + "description": "All since tags in case there was more than one tag. Is undefined if not known.", + "items": { + "type": "string" + }, + "type": "array" + }, "type": { "$ref": "#/definitions/Type", "description": "The aliased type."