1 | // Copyright (C) 2021 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | // this file was generated by the generate.ts script |
5 | |
6 | #ifndef QLANGUAGESERVERSPEC_P_H |
7 | #define QLANGUAGESERVERSPEC_P_H |
8 | |
9 | // |
10 | // W A R N I N G |
11 | // ------------- |
12 | // |
13 | // This file is not part of the Qt API. It exists purely as an |
14 | // implementation detail. This header file may change from version to |
15 | // version without notice, or even be removed. |
16 | // |
17 | // We mean it. |
18 | // |
19 | |
20 | #include <QtLanguageServer/qtlanguageserverglobal.h> |
21 | #include <QtLanguageServer/private/qlanguageserverspectypes_p.h> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | namespace QLspSpecification { |
26 | namespace ClientCapabilitiesInfo { |
27 | constexpr auto GeneralRegularExpressions = "general.regularExpressions" ; |
28 | using GeneralRegularExpressionsType = RegularExpressionsClientCapabilities; |
29 | constexpr auto WorkspaceWorkspaceEdit = "workspace.workspaceEdit" ; |
30 | using WorkspaceWorkspaceEditType = WorkspaceEditClientCapabilities; |
31 | constexpr auto WindowShowMessage = "window.showMessage" ; |
32 | using WindowShowMessageType = ShowMessageRequestClientCapabilities; |
33 | constexpr auto WindowShowDocument = "window.showDocument" ; |
34 | using WindowShowDocumentType = ShowDocumentClientCapabilities; |
35 | constexpr auto WorkspaceWorkspaceFolders = "workspace.workspaceFolders" ; |
36 | using WorkspaceWorkspaceFoldersType = bool; |
37 | constexpr auto WorkspaceDidChangeConfiguration = "workspace.didChangeConfiguration" ; |
38 | using WorkspaceDidChangeConfigurationType = DidChangeConfigurationClientCapabilities; |
39 | constexpr auto WorkspaceConfiguration = "workspace.configuration" ; |
40 | using WorkspaceConfigurationType = bool; |
41 | constexpr auto WorkspaceDidChangeWatchedFiles = "workspace.didChangeWatchedFiles" ; |
42 | using WorkspaceDidChangeWatchedFilesType = DidChangeWatchedFilesClientCapabilities; |
43 | constexpr auto WorkspaceSymbol = "workspace.symbol" ; |
44 | using WorkspaceSymbolType = WorkspaceSymbolClientCapabilities; |
45 | constexpr auto WorkspaceExecuteCommand = "workspace.executeCommand" ; |
46 | using WorkspaceExecuteCommandType = ExecuteCommandClientCapabilities; |
47 | constexpr auto WorkspaceApplyEdit = "workspace.applyEdit" ; |
48 | using WorkspaceApplyEditType = bool; |
49 | constexpr auto WorkspaceFileOperationsWillCreate = "workspace.fileOperations.willCreate" ; |
50 | using WorkspaceFileOperationsWillCreateType = bool; |
51 | constexpr auto WorkspaceFileOperationsDidCreate = "workspace.fileOperations.didCreate" ; |
52 | using WorkspaceFileOperationsDidCreateType = bool; |
53 | constexpr auto WorkspaceFileOperationsWillRename = "workspace.fileOperations.willRename" ; |
54 | using WorkspaceFileOperationsWillRenameType = bool; |
55 | constexpr auto WorkspaceFileOperationsDidRename = "workspace.fileOperations.didRename" ; |
56 | using WorkspaceFileOperationsDidRenameType = bool; |
57 | constexpr auto WorkspaceFileOperationsWillDelete = "workspace.fileOperations.willDelete" ; |
58 | using WorkspaceFileOperationsWillDeleteType = bool; |
59 | constexpr auto WorkspaceFileOperationsDidDelete = "workspace.fileOperations.didDelete" ; |
60 | using WorkspaceFileOperationsDidDeleteType = bool; |
61 | constexpr auto TextDocumentSynchronizationDynamicRegistration = |
62 | "textDocument.synchronization.dynamicRegistration" ; |
63 | using TextDocumentSynchronizationDynamicRegistrationType = bool; |
64 | constexpr auto TextDocumentSynchronizationWillSave = "textDocument.synchronization.willSave" ; |
65 | using TextDocumentSynchronizationWillSaveType = bool; |
66 | constexpr auto TextDocumentSynchronizationWillSaveWaitUntil = |
67 | "textDocument.synchronization.willSaveWaitUntil" ; |
68 | using TextDocumentSynchronizationWillSaveWaitUntilType = bool; |
69 | constexpr auto TextDocumentSynchronizationDidSave = "textDocument.synchronization.didSave" ; |
70 | using TextDocumentSynchronizationDidSaveType = bool; |
71 | constexpr auto TextDocumentPublishDiagnostics = "textDocument.publishDiagnostics" ; |
72 | using TextDocumentPublishDiagnosticsType = PublishDiagnosticsClientCapabilities; |
73 | constexpr auto TextDocumentCompletion = "textDocument.completion" ; |
74 | using TextDocumentCompletionType = CompletionClientCapabilities; |
75 | constexpr auto TextDocumentHover = "textDocument.hover" ; |
76 | using TextDocumentHoverType = HoverClientCapabilities; |
77 | constexpr auto TextDocumentSignatureHelp = "textDocument.signatureHelp" ; |
78 | using TextDocumentSignatureHelpType = SignatureHelpClientCapabilities; |
79 | constexpr auto TextDocumentDeclaration = "textDocument.declaration" ; |
80 | using TextDocumentDeclarationType = DeclarationClientCapabilities; |
81 | constexpr auto TextDocumentDefinition = "textDocument.definition" ; |
82 | using TextDocumentDefinitionType = DefinitionClientCapabilities; |
83 | constexpr auto TextDocumentTypeDefinition = "textDocument.typeDefinition" ; |
84 | using TextDocumentTypeDefinitionType = TypeDefinitionClientCapabilities; |
85 | constexpr auto TextDocumentImplementation = "textDocument.implementation" ; |
86 | using TextDocumentImplementationType = ImplementationClientCapabilities; |
87 | constexpr auto TextDocumentReferences = "textDocument.references" ; |
88 | using TextDocumentReferencesType = ReferenceClientCapabilities; |
89 | constexpr auto TextDocumentDocumentHighlight = "textDocument.documentHighlight" ; |
90 | using TextDocumentDocumentHighlightType = DocumentHighlightClientCapabilities; |
91 | constexpr auto TextDocumentDocumentSymbol = "textDocument.documentSymbol" ; |
92 | using TextDocumentDocumentSymbolType = DocumentSymbolClientCapabilities; |
93 | constexpr auto TextDocumentCodeAction = "textDocument.codeAction" ; |
94 | using TextDocumentCodeActionType = CodeActionClientCapabilities; |
95 | constexpr auto TextDocumentCodeActionResolveSupport = "textDocument.codeAction.resolveSupport" ; |
96 | using TextDocumentCodeActionResolveSupportType = QJsonObject; |
97 | constexpr auto TextDocumentCodeLens = "textDocument.codeLens" ; |
98 | using TextDocumentCodeLensType = CodeLensClientCapabilities; |
99 | constexpr auto WorkspaceCodeLens = "workspace.codeLens" ; |
100 | using WorkspaceCodeLensType = CodeLensWorkspaceClientCapabilities; |
101 | constexpr auto TextDocumentDocumentLink = "textDocument.documentLink" ; |
102 | using TextDocumentDocumentLinkType = DocumentLinkClientCapabilities; |
103 | constexpr auto TextDocumentColorProvider = "textDocument.colorProvider" ; |
104 | using TextDocumentColorProviderType = DocumentColorClientCapabilities; |
105 | constexpr auto TextDocumentFormatting = "textDocument.formatting" ; |
106 | using TextDocumentFormattingType = DocumentFormattingClientCapabilities; |
107 | constexpr auto TextDocumentRangeFormatting = "textDocument.rangeFormatting" ; |
108 | using TextDocumentRangeFormattingType = DocumentRangeFormattingClientCapabilities; |
109 | constexpr auto TextDocumentOnTypeFormatting = "textDocument.onTypeFormatting" ; |
110 | using TextDocumentOnTypeFormattingType = DocumentOnTypeFormattingClientCapabilities; |
111 | constexpr auto TextDocumentRename = "textDocument.rename" ; |
112 | using TextDocumentRenameType = RenameClientCapabilities; |
113 | constexpr auto TextDocumentFoldingRange = "textDocument.foldingRange" ; |
114 | using TextDocumentFoldingRangeType = FoldingRangeClientCapabilities; |
115 | constexpr auto TextDocumentSelectionRange = "textDocument.selectionRange" ; |
116 | using TextDocumentSelectionRangeType = SelectionRangeClientCapabilities; |
117 | constexpr auto TextDocumentCallHierarchy = "textDocument.callHierarchy" ; |
118 | using TextDocumentCallHierarchyType = CallHierarchyClientCapabilities; |
119 | constexpr auto TextDocumentSemanticTokens = "textDocument.semanticTokens" ; |
120 | using TextDocumentSemanticTokensType = SemanticTokensClientCapabilities; |
121 | constexpr auto WorkspaceSemanticTokens = "workspace.semanticTokens" ; |
122 | using WorkspaceSemanticTokensType = SemanticTokensWorkspaceClientCapabilities; |
123 | } |
124 | |
125 | namespace ServerCapabilitiesInfo { |
126 | constexpr auto WorkspaceWorkspaceFolders = "workspace.workspaceFolders" ; |
127 | using WorkspaceWorkspaceFoldersType = WorkspaceFoldersServerCapabilities; |
128 | constexpr auto WorkspaceSymbolProvider = "workspaceSymbolProvider" ; |
129 | using WorkspaceSymbolProviderType = std::variant<bool, WorkspaceSymbolOptions>; |
130 | constexpr auto ExecuteCommandProvider = "executeCommandProvider" ; |
131 | using ExecuteCommandProviderType = ExecuteCommandOptions; |
132 | constexpr auto WorkspaceFileOperationsWillCreate = "workspace.fileOperations.willCreate" ; |
133 | using WorkspaceFileOperationsWillCreateType = FileOperationRegistrationOptions; |
134 | constexpr auto WorkspaceFileOperationsDidCreate = "workspace.fileOperations.didCreate" ; |
135 | using WorkspaceFileOperationsDidCreateType = FileOperationRegistrationOptions; |
136 | constexpr auto WorkspaceFileOperationsWillRename = "workspace.fileOperations.willRename" ; |
137 | using WorkspaceFileOperationsWillRenameType = FileOperationRegistrationOptions; |
138 | constexpr auto WorkspaceFileOperationsDidRename = "workspace.fileOperations.didRename" ; |
139 | using WorkspaceFileOperationsDidRenameType = FileOperationRegistrationOptions; |
140 | constexpr auto WorkspaceFileOperationsWillDelete = "workspace.fileOperations.willDelete" ; |
141 | using WorkspaceFileOperationsWillDeleteType = FileOperationRegistrationOptions; |
142 | constexpr auto WorkspaceFileOperationsDidDelete = "workspace.fileOperations.didDelete" ; |
143 | using WorkspaceFileOperationsDidDeleteType = FileOperationRegistrationOptions; |
144 | constexpr auto TextDocumentSync = "textDocumentSync" ; |
145 | using TextDocumentSyncType = std::variant<TextDocumentSyncKind, TextDocumentSyncOptions>; |
146 | constexpr auto TextDocumentSyncWillSave = "textDocumentSync.willSave" ; |
147 | using TextDocumentSyncWillSaveType = bool; |
148 | constexpr auto TextDocumentSyncWillSaveWaitUntil = "textDocumentSync.willSaveWaitUntil" ; |
149 | using TextDocumentSyncWillSaveWaitUntilType = bool; |
150 | constexpr auto TextDocumentSyncSave = "textDocumentSync.save" ; |
151 | using TextDocumentSyncSaveType = std::variant<bool, SaveOptions>; |
152 | constexpr auto CompletionProvider = "completionProvider" ; |
153 | using CompletionProviderType = CompletionOptions; |
154 | constexpr auto HoverProvider = "hoverProvider" ; |
155 | using HoverProviderType = std::variant<bool, HoverOptions>; |
156 | constexpr auto SignatureHelpProvider = "signatureHelpProvider" ; |
157 | using SignatureHelpProviderType = SignatureHelpOptions; |
158 | constexpr auto DeclarationProvider = "declarationProvider" ; |
159 | using DeclarationProviderType = |
160 | std::variant<bool, DeclarationOptions, DeclarationRegistrationOptions>; |
161 | constexpr auto DefinitionProvider = "definitionProvider" ; |
162 | using DefinitionProviderType = std::variant<bool, DefinitionOptions>; |
163 | constexpr auto TypeDefinitionProvider = "typeDefinitionProvider" ; |
164 | using TypeDefinitionProviderType = |
165 | std::variant<bool, TypeDefinitionOptions, TypeDefinitionRegistrationOptions>; |
166 | constexpr auto ImplementationProvider = "implementationProvider" ; |
167 | using ImplementationProviderType = |
168 | std::variant<bool, ImplementationOptions, ImplementationRegistrationOptions>; |
169 | constexpr auto ReferencesProvider = "referencesProvider" ; |
170 | using ReferencesProviderType = std::variant<bool, ReferenceOptions>; |
171 | constexpr auto DocumentHighlightProvider = "documentHighlightProvider" ; |
172 | using DocumentHighlightProviderType = std::variant<bool, DocumentHighlightOptions>; |
173 | constexpr auto DocumentSymbolProvider = "documentSymbolProvider" ; |
174 | using DocumentSymbolProviderType = std::variant<bool, DocumentSymbolOptions>; |
175 | constexpr auto CodeActionProvider = "codeActionProvider" ; |
176 | using CodeActionProviderType = std::variant<bool, CodeActionOptions>; |
177 | constexpr auto CodeLensProvider = "codeLensProvider" ; |
178 | using CodeLensProviderType = CodeLensOptions; |
179 | constexpr auto DocumentLinkProvider = "documentLinkProvider" ; |
180 | using DocumentLinkProviderType = DocumentLinkOptions; |
181 | constexpr auto ColorProvider = "colorProvider" ; |
182 | using ColorProviderType = |
183 | std::variant<bool, DocumentColorOptions, DocumentColorRegistrationOptions>; |
184 | constexpr auto DocumentFormattingProvider = "documentFormattingProvider" ; |
185 | using DocumentFormattingProviderType = std::variant<bool, DocumentFormattingOptions>; |
186 | constexpr auto DocumentRangeFormattingProvider = "documentRangeFormattingProvider" ; |
187 | using DocumentRangeFormattingProviderType = std::variant<bool, DocumentRangeFormattingOptions>; |
188 | constexpr auto DocumentOnTypeFormattingProvider = "documentOnTypeFormattingProvider" ; |
189 | using DocumentOnTypeFormattingProviderType = DocumentOnTypeFormattingOptions; |
190 | constexpr auto RenameProvider = "renameProvider" ; |
191 | using RenameProviderType = std::variant<bool, RenameOptions>; |
192 | constexpr auto FoldingRangeProvider = "foldingRangeProvider" ; |
193 | using FoldingRangeProviderType = |
194 | std::variant<bool, FoldingRangeOptions, FoldingRangeRegistrationOptions>; |
195 | constexpr auto SelectionRangeProvider = "selectionRangeProvider" ; |
196 | using SelectionRangeProviderType = |
197 | std::variant<bool, SelectionRangeOptions, SelectionRangeRegistrationOptions>; |
198 | constexpr auto CallHierarchyProvider = "callHierarchyProvider" ; |
199 | using CallHierarchyProviderType = |
200 | std::variant<bool, CallHierarchyOptions, CallHierarchyRegistrationOptions>; |
201 | constexpr auto SemanticTokensProvider = "semanticTokensProvider" ; |
202 | using SemanticTokensProviderType = |
203 | std::variant<SemanticTokensOptions, SemanticTokensRegistrationOptions>; |
204 | constexpr auto LinkedEditingRangeProvider = "linkedEditingRangeProvider" ; |
205 | using LinkedEditingRangeProviderType = |
206 | std::variant<bool, LinkedEditingRangeOptions, LinkedEditingRangeRegistrationOptions>; |
207 | constexpr auto MonikerProvider = "monikerProvider" ; |
208 | using MonikerProviderType = std::variant<bool, MonikerOptions, MonikerRegistrationOptions>; |
209 | } |
210 | |
211 | namespace Requests { |
212 | constexpr auto InitializeMethod = "initialize" ; |
213 | using InitializeParamsType = InitializeParams; |
214 | constexpr auto ShutdownMethod = "shutdown" ; |
215 | using ShutdownParamsType = std::nullptr_t; |
216 | constexpr auto ShowMessageRequestMethod = "window/showMessageRequest" ; |
217 | using ShowMessageRequestParamsType = ShowMessageRequestParams; |
218 | constexpr auto ShowDocumentMethod = "window/showDocument" ; |
219 | using ShowDocumentParamsType = ShowDocumentParams; |
220 | constexpr auto WorkDoneProgressCreateMethod = "window/workDoneProgress/create" ; |
221 | using WorkDoneProgressCreateParamsType = WorkDoneProgressCreateParams; |
222 | constexpr auto RegistrationMethod = "client/registerCapability" ; |
223 | using RegistrationParamsType = RegistrationParams; |
224 | constexpr auto UnregistrationMethod = "client/unregisterCapability" ; |
225 | using UnregistrationParamsType = UnregistrationParams; |
226 | constexpr auto WorkspaceWorkspaceFoldersMethod = "workspace/workspaceFolders" ; |
227 | using WorkspaceWorkspaceFoldersParamsType = std::nullptr_t; |
228 | constexpr auto ConfigurationMethod = "workspace/configuration" ; |
229 | using ConfigurationParamsType = ConfigurationParams; |
230 | constexpr auto WorkspaceSymbolMethod = "workspace/symbol" ; |
231 | using WorkspaceSymbolParamsType = WorkspaceSymbolParams; |
232 | constexpr auto ExecuteCommandMethod = "workspace/executeCommand" ; |
233 | using ExecuteCommandParamsType = ExecuteCommandParams; |
234 | constexpr auto ApplyWorkspaceEditMethod = "workspace/applyEdit" ; |
235 | using ApplyWorkspaceEditParamsType = ApplyWorkspaceEditParams; |
236 | constexpr auto CreateFilesMethod = "workspace/willCreateFiles" ; |
237 | using CreateFilesParamsType = CreateFilesParams; |
238 | constexpr auto RenameFilesMethod = "workspace/willRenameFiles" ; |
239 | using RenameFilesParamsType = RenameFilesParams; |
240 | constexpr auto DeleteFilesMethod = "workspace/willDeleteFiles" ; |
241 | using DeleteFilesParamsType = DeleteFilesParams; |
242 | constexpr auto WillSaveTextDocumentMethod = "textDocument/willSaveWaitUntil" ; |
243 | using WillSaveTextDocumentParamsType = WillSaveTextDocumentParams; |
244 | constexpr auto CompletionMethod = "textDocument/completion" ; |
245 | using CompletionParamsType = CompletionParams; |
246 | constexpr auto CompletionItemResolveMethod = "completionItem/resolve" ; |
247 | using CompletionItemResolveParamsType = CompletionItem; |
248 | constexpr auto HoverMethod = "textDocument/hover" ; |
249 | using HoverParamsType = HoverParams; |
250 | constexpr auto SignatureHelpMethod = "textDocument/signatureHelp" ; |
251 | using SignatureHelpParamsType = SignatureHelpParams; |
252 | constexpr auto DeclarationMethod = "textDocument/declaration" ; |
253 | using DeclarationParamsType = DeclarationParams; |
254 | constexpr auto DefinitionMethod = "textDocument/definition" ; |
255 | using DefinitionParamsType = DefinitionParams; |
256 | constexpr auto TypeDefinitionMethod = "textDocument/typeDefinition" ; |
257 | using TypeDefinitionParamsType = TypeDefinitionParams; |
258 | constexpr auto ImplementationMethod = "textDocument/implementation" ; |
259 | using ImplementationParamsType = ImplementationParams; |
260 | constexpr auto ReferenceMethod = "textDocument/references" ; |
261 | using ReferenceParamsType = ReferenceParams; |
262 | constexpr auto DocumentHighlightMethod = "textDocument/documentHighlight" ; |
263 | using DocumentHighlightParamsType = DocumentHighlightParams; |
264 | constexpr auto DocumentSymbolMethod = "textDocument/documentSymbol" ; |
265 | using DocumentSymbolParamsType = DocumentSymbolParams; |
266 | constexpr auto CodeActionMethod = "textDocument/codeAction" ; |
267 | using CodeActionParamsType = CodeActionParams; |
268 | constexpr auto CodeActionResolveMethod = "codeAction/resolve" ; |
269 | using CodeActionResolveParamsType = CodeAction; |
270 | constexpr auto CodeLensMethod = "textDocument/codeLens" ; |
271 | using CodeLensParamsType = CodeLensParams; |
272 | constexpr auto CodeLensResolveMethod = "codeLens/resolve" ; |
273 | using CodeLensResolveParamsType = CodeLens; |
274 | constexpr auto CodeLensRefreshMethod = "workspace/codeLens/refresh" ; |
275 | using CodeLensRefreshParamsType = std::nullptr_t; |
276 | constexpr auto DocumentLinkMethod = "textDocument/documentLink" ; |
277 | using DocumentLinkParamsType = DocumentLinkParams; |
278 | constexpr auto DocumentLinkResolveMethod = "documentLink/resolve" ; |
279 | using DocumentLinkResolveParamsType = DocumentLink; |
280 | constexpr auto DocumentColorMethod = "textDocument/documentColor" ; |
281 | using DocumentColorParamsType = DocumentColorParams; |
282 | constexpr auto ColorPresentationMethod = "textDocument/colorPresentation" ; |
283 | using ColorPresentationParamsType = ColorPresentationParams; |
284 | constexpr auto DocumentFormattingMethod = "textDocument/formatting" ; |
285 | using DocumentFormattingParamsType = DocumentFormattingParams; |
286 | constexpr auto DocumentRangeFormattingMethod = "textDocument/rangeFormatting" ; |
287 | using DocumentRangeFormattingParamsType = DocumentRangeFormattingParams; |
288 | constexpr auto DocumentOnTypeFormattingMethod = "textDocument/onTypeFormatting" ; |
289 | using DocumentOnTypeFormattingParamsType = DocumentOnTypeFormattingParams; |
290 | constexpr auto RenameMethod = "textDocument/rename" ; |
291 | using RenameParamsType = RenameParams; |
292 | constexpr auto PrepareRenameMethod = "textDocument/prepareRename" ; |
293 | using PrepareRenameParamsType = PrepareRenameParams; |
294 | constexpr auto FoldingRangeMethod = "textDocument/foldingRange" ; |
295 | using FoldingRangeParamsType = FoldingRangeParams; |
296 | constexpr auto SelectionRangeMethod = "textDocument/selectionRange" ; |
297 | using SelectionRangeParamsType = SelectionRangeParams; |
298 | constexpr auto CallHierarchyPrepareMethod = "textDocument/prepareCallHierarchy" ; |
299 | using CallHierarchyPrepareParamsType = CallHierarchyPrepareParams; |
300 | constexpr auto CallHierarchyIncomingCallsMethod = "callHierarchy/incomingCalls" ; |
301 | using CallHierarchyIncomingCallsParamsType = CallHierarchyIncomingCallsParams; |
302 | constexpr auto CallHierarchyOutgoingCallsMethod = "callHierarchy/outgoingCalls" ; |
303 | using CallHierarchyOutgoingCallsParamsType = CallHierarchyOutgoingCallsParams; |
304 | constexpr auto SemanticTokensMethod = "textDocument/semanticTokens/full" ; |
305 | using SemanticTokensParamsType = SemanticTokensParams; |
306 | constexpr auto SemanticTokensDeltaMethod = "textDocument/semanticTokens/full/delta" ; |
307 | using SemanticTokensDeltaParamsType = SemanticTokensDeltaParams; |
308 | constexpr auto SemanticTokensRangeMethod = "textDocument/semanticTokens/range" ; |
309 | using SemanticTokensRangeParamsType = SemanticTokensRangeParams; |
310 | constexpr auto RequestingARefreshOfAllSemanticTokensMethod = "workspace/semanticTokens/refresh" ; |
311 | using RequestingARefreshOfAllSemanticTokensParamsType = std::nullptr_t; |
312 | constexpr auto LinkedEditingRangeMethod = "textDocument/linkedEditingRange" ; |
313 | using LinkedEditingRangeParamsType = LinkedEditingRangeParams; |
314 | constexpr auto MonikerMethod = "textDocument/moniker" ; |
315 | using MonikerParamsType = MonikerParams; |
316 | } |
317 | |
318 | namespace Responses { |
319 | using InitializeResultType = InitializeResult; |
320 | using InitializeResponseType = LSPResponse<InitializeResultType>; |
321 | using ShutdownResultType = std::nullptr_t; |
322 | using ShutdownResponseType = LSPResponse<ShutdownResultType>; |
323 | using ShowMessageRequestResultType = std::variant<MessageActionItem, std::nullptr_t>; |
324 | using ShowMessageRequestResponseType = LSPResponse<ShowMessageRequestResultType>; |
325 | using ShowDocumentResultType = ShowDocumentResult; |
326 | using ShowDocumentResponseType = LSPResponse<ShowDocumentResultType>; |
327 | using WorkDoneProgressCreateResultType = std::nullptr_t; |
328 | using WorkDoneProgressCreateResponseType = LSPResponse<WorkDoneProgressCreateResultType>; |
329 | using RegistrationResultType = std::nullptr_t; |
330 | using RegistrationResponseType = LSPResponse<RegistrationResultType>; |
331 | using UnregistrationResultType = std::nullptr_t; |
332 | using UnregistrationResponseType = LSPResponse<UnregistrationResultType>; |
333 | using WorkspaceWorkspaceFoldersResultType = std::variant<QList<WorkspaceFolder>, std::nullptr_t>; |
334 | using WorkspaceWorkspaceFoldersResponseType = LSPResponse<WorkspaceWorkspaceFoldersResultType>; |
335 | using ConfigurationResultType = QList<QJsonValue>; |
336 | using ConfigurationResponseType = LSPResponse<ConfigurationResultType>; |
337 | using WorkspaceSymbolResultType = std::variant<QList<SymbolInformation>, std::nullptr_t>; |
338 | using WorkspaceSymbolPartialResultType = QList<SymbolInformation>; |
339 | using WorkspaceSymbolResponseType = |
340 | LSPPartialResponse<WorkspaceSymbolResultType, WorkspaceSymbolPartialResultType>; |
341 | using ExecuteCommandResultType = std::variant<QJsonValue, std::nullptr_t>; |
342 | using ExecuteCommandResponseType = LSPResponse<ExecuteCommandResultType>; |
343 | using ApplyWorkspaceEditResultType = ApplyWorkspaceEditResponse; |
344 | using ApplyWorkspaceEditResponseType = LSPResponse<ApplyWorkspaceEditResultType>; |
345 | using CreateFilesResultType = std::variant<WorkspaceEdit, std::nullptr_t>; |
346 | using CreateFilesResponseType = LSPResponse<CreateFilesResultType>; |
347 | using RenameFilesResultType = std::variant<WorkspaceEdit, std::nullptr_t>; |
348 | using RenameFilesResponseType = LSPResponse<RenameFilesResultType>; |
349 | using DeleteFilesResultType = std::variant<WorkspaceEdit, std::nullptr_t>; |
350 | using DeleteFilesResponseType = LSPResponse<DeleteFilesResultType>; |
351 | using WillSaveTextDocumentResultType = std::variant<QList<TextEdit>, std::nullptr_t>; |
352 | using WillSaveTextDocumentResponseType = LSPResponse<WillSaveTextDocumentResultType>; |
353 | using CompletionResultType = std::variant<QList<CompletionItem>, CompletionList, std::nullptr_t>; |
354 | using CompletionPartialResultType = std::variant<CompletionList, QList<CompletionItem>>; |
355 | using CompletionResponseType = |
356 | LSPPartialResponse<CompletionResultType, CompletionPartialResultType>; |
357 | using CompletionItemResolveResultType = CompletionItem; |
358 | using CompletionItemResolveResponseType = LSPResponse<CompletionItemResolveResultType>; |
359 | using HoverResultType = std::variant<Hover, std::nullptr_t>; |
360 | using HoverResponseType = LSPResponse<HoverResultType>; |
361 | using SignatureHelpResultType = std::variant<SignatureHelp, std::nullptr_t>; |
362 | using SignatureHelpResponseType = LSPResponse<SignatureHelpResultType>; |
363 | using DeclarationResultType = |
364 | std::variant<Location, QList<Location>, QList<LocationLink>, std::nullptr_t>; |
365 | using DeclarationPartialResultType = std::variant<QList<Location>, QList<LocationLink>>; |
366 | using DeclarationResponseType = |
367 | LSPPartialResponse<DeclarationResultType, DeclarationPartialResultType>; |
368 | using DefinitionResultType = |
369 | std::variant<Location, QList<Location>, QList<LocationLink>, std::nullptr_t>; |
370 | using DefinitionPartialResultType = std::variant<QList<Location>, QList<LocationLink>>; |
371 | using DefinitionResponseType = |
372 | LSPPartialResponse<DefinitionResultType, DefinitionPartialResultType>; |
373 | using TypeDefinitionResultType = |
374 | std::variant<Location, QList<Location>, QList<LocationLink>, std::nullptr_t>; |
375 | using TypeDefinitionPartialResultType = std::variant<QList<Location>, QList<LocationLink>>; |
376 | using TypeDefinitionResponseType = |
377 | LSPPartialResponse<TypeDefinitionResultType, TypeDefinitionPartialResultType>; |
378 | using ImplementationResultType = |
379 | std::variant<Location, QList<Location>, QList<LocationLink>, std::nullptr_t>; |
380 | using ImplementationPartialResultType = std::variant<QList<Location>, QList<LocationLink>>; |
381 | using ImplementationResponseType = |
382 | LSPPartialResponse<ImplementationResultType, ImplementationPartialResultType>; |
383 | using ReferenceResultType = std::variant<QList<Location>, std::nullptr_t>; |
384 | using ReferencePartialResultType = QList<Location>; |
385 | using ReferenceResponseType = LSPPartialResponse<ReferenceResultType, ReferencePartialResultType>; |
386 | using DocumentHighlightResultType = std::variant<QList<DocumentHighlight>, std::nullptr_t>; |
387 | using DocumentHighlightPartialResultType = QList<DocumentHighlight>; |
388 | using DocumentHighlightResponseType = |
389 | LSPPartialResponse<DocumentHighlightResultType, DocumentHighlightPartialResultType>; |
390 | using DocumentSymbolResultType = |
391 | std::variant<QList<DocumentSymbol>, QList<SymbolInformation>, std::nullptr_t>; |
392 | using DocumentSymbolPartialResultType = |
393 | std::variant<QList<DocumentSymbol>, QList<SymbolInformation>>; |
394 | using DocumentSymbolResponseType = |
395 | LSPPartialResponse<DocumentSymbolResultType, DocumentSymbolPartialResultType>; |
396 | using CodeActionResultType = std::variant<QList<std::variant<Command, CodeAction>>, std::nullptr_t>; |
397 | using CodeActionPartialResultType = QList<std::variant<Command, CodeAction>>; |
398 | using CodeActionResponseType = |
399 | LSPPartialResponse<CodeActionResultType, CodeActionPartialResultType>; |
400 | using CodeActionResolveResultType = CodeAction; |
401 | using CodeActionResolveResponseType = LSPResponse<CodeActionResolveResultType>; |
402 | using CodeLensResultType = std::variant<QList<CodeLens>, std::nullptr_t>; |
403 | using CodeLensPartialResultType = QList<CodeLens>; |
404 | using CodeLensResponseType = LSPPartialResponse<CodeLensResultType, CodeLensPartialResultType>; |
405 | using CodeLensResolveResultType = CodeLens; |
406 | using CodeLensResolveResponseType = LSPResponse<CodeLensResolveResultType>; |
407 | using CodeLensRefreshResultType = std::nullptr_t; |
408 | using CodeLensRefreshResponseType = LSPResponse<CodeLensRefreshResultType>; |
409 | using DocumentLinkResultType = std::variant<QList<DocumentLink>, std::nullptr_t>; |
410 | using DocumentLinkPartialResultType = QList<DocumentLink>; |
411 | using DocumentLinkResponseType = |
412 | LSPPartialResponse<DocumentLinkResultType, DocumentLinkPartialResultType>; |
413 | using DocumentLinkResolveResultType = DocumentLink; |
414 | using DocumentLinkResolveResponseType = LSPResponse<DocumentLinkResolveResultType>; |
415 | using DocumentColorResultType = QList<ColorInformation>; |
416 | using DocumentColorPartialResultType = QList<ColorInformation>; |
417 | using DocumentColorResponseType = |
418 | LSPPartialResponse<DocumentColorResultType, DocumentColorPartialResultType>; |
419 | using ColorPresentationResultType = QList<ColorPresentation>; |
420 | using ColorPresentationPartialResultType = QList<ColorPresentation>; |
421 | using ColorPresentationResponseType = |
422 | LSPPartialResponse<ColorPresentationResultType, ColorPresentationPartialResultType>; |
423 | using DocumentFormattingResultType = std::variant<QList<TextEdit>, std::nullptr_t>; |
424 | using DocumentFormattingResponseType = LSPResponse<DocumentFormattingResultType>; |
425 | using DocumentRangeFormattingResultType = std::variant<QList<TextEdit>, std::nullptr_t>; |
426 | using DocumentRangeFormattingResponseType = LSPResponse<DocumentRangeFormattingResultType>; |
427 | using DocumentOnTypeFormattingResultType = std::variant<QList<TextEdit>, std::nullptr_t>; |
428 | using DocumentOnTypeFormattingResponseType = LSPResponse<DocumentOnTypeFormattingResultType>; |
429 | using RenameResultType = std::variant<WorkspaceEdit, std::nullptr_t>; |
430 | using RenameResponseType = LSPResponse<RenameResultType>; |
431 | using PrepareRenameResultType = |
432 | std::variant<Range, RangePlaceHolder, DefaultBehaviorStruct, std::nullptr_t>; |
433 | using PrepareRenameResponseType = LSPResponse<PrepareRenameResultType>; |
434 | using FoldingRangeResultType = std::variant<QList<FoldingRange>, std::nullptr_t>; |
435 | using FoldingRangePartialResultType = QList<FoldingRange>; |
436 | using FoldingRangeResponseType = |
437 | LSPPartialResponse<FoldingRangeResultType, FoldingRangePartialResultType>; |
438 | using SelectionRangeResultType = std::variant<QList<SelectionRange>, std::nullptr_t>; |
439 | using SelectionRangePartialResultType = QList<SelectionRange>; |
440 | using SelectionRangeResponseType = |
441 | LSPPartialResponse<SelectionRangeResultType, SelectionRangePartialResultType>; |
442 | using CallHierarchyPrepareResultType = std::variant<QList<CallHierarchyItem>, std::nullptr_t>; |
443 | using CallHierarchyPrepareResponseType = LSPResponse<CallHierarchyPrepareResultType>; |
444 | using CallHierarchyIncomingCallsResultType = |
445 | std::variant<QList<CallHierarchyIncomingCall>, std::nullptr_t>; |
446 | using CallHierarchyIncomingCallsPartialResultType = QList<CallHierarchyIncomingCall>; |
447 | using CallHierarchyIncomingCallsResponseType = |
448 | LSPPartialResponse<CallHierarchyIncomingCallsResultType, |
449 | CallHierarchyIncomingCallsPartialResultType>; |
450 | using CallHierarchyOutgoingCallsResultType = |
451 | std::variant<QList<CallHierarchyOutgoingCall>, std::nullptr_t>; |
452 | using CallHierarchyOutgoingCallsPartialResultType = QList<CallHierarchyOutgoingCall>; |
453 | using CallHierarchyOutgoingCallsResponseType = |
454 | LSPPartialResponse<CallHierarchyOutgoingCallsResultType, |
455 | CallHierarchyOutgoingCallsPartialResultType>; |
456 | using SemanticTokensResultType = std::variant<SemanticTokens, std::nullptr_t>; |
457 | using SemanticTokensPartialResultType = SemanticTokensPartialResult; |
458 | using SemanticTokensResponseType = |
459 | LSPPartialResponse<SemanticTokensResultType, SemanticTokensPartialResultType>; |
460 | using SemanticTokensDeltaResultType = |
461 | std::variant<SemanticTokens, SemanticTokensDelta, std::nullptr_t>; |
462 | using SemanticTokensDeltaPartialResultType = SemanticTokensDeltaPartialResult; |
463 | using SemanticTokensDeltaResponseType = |
464 | LSPPartialResponse<SemanticTokensDeltaResultType, SemanticTokensDeltaPartialResultType>; |
465 | using SemanticTokensRangeResultType = std::variant<SemanticTokens, std::nullptr_t>; |
466 | using SemanticTokensRangePartialResultType = SemanticTokensPartialResult; |
467 | using SemanticTokensRangeResponseType = |
468 | LSPPartialResponse<SemanticTokensRangeResultType, SemanticTokensRangePartialResultType>; |
469 | using RequestingARefreshOfAllSemanticTokensResultType = std::nullptr_t; |
470 | using RequestingARefreshOfAllSemanticTokensResponseType = |
471 | LSPResponse<RequestingARefreshOfAllSemanticTokensResultType>; |
472 | using LinkedEditingRangeResultType = std::variant<LinkedEditingRanges, std::nullptr_t>; |
473 | using LinkedEditingRangeResponseType = LSPResponse<LinkedEditingRangeResultType>; |
474 | using MonikerResultType = std::variant<QList<Moniker>, std::nullptr_t>; |
475 | using MonikerPartialResultType = QList<Moniker>; |
476 | using MonikerResponseType = LSPPartialResponse<MonikerResultType, MonikerPartialResultType>; |
477 | } |
478 | |
479 | namespace Notifications { |
480 | constexpr auto CancelMethod = "$/cancelRequest" ; |
481 | using CancelParamsType = CancelParams; |
482 | constexpr auto ProgressMethod = "$/progress" ; |
483 | constexpr auto InitializedMethod = "initialized" ; |
484 | using InitializedParamsType = InitializedParams; |
485 | constexpr auto ExitMethod = "exit" ; |
486 | using ExitParamsType = std::nullptr_t; |
487 | constexpr auto LogTraceMethod = "$/logTrace" ; |
488 | using LogTraceParamsType = LogTraceParams; |
489 | constexpr auto SetTraceMethod = "$/setTrace" ; |
490 | using SetTraceParamsType = SetTraceParams; |
491 | constexpr auto ShowMessageMethod = "window/showMessage" ; |
492 | using ShowMessageParamsType = ShowMessageParams; |
493 | constexpr auto LogMessageMethod = "window/logMessage" ; |
494 | using LogMessageParamsType = LogMessageParams; |
495 | constexpr auto WorkDoneProgressCancelMethod = "window/workDoneProgress/cancel" ; |
496 | using WorkDoneProgressCancelParamsType = WorkDoneProgressCancelParams; |
497 | constexpr auto TelemetryEventMethod = "telemetry/event" ; |
498 | using TelemetryEventParamsType = QJsonObject; |
499 | constexpr auto DidChangeWorkspaceFoldersMethod = "workspace/didChangeWorkspaceFolders" ; |
500 | using DidChangeWorkspaceFoldersParamsType = DidChangeWorkspaceFoldersParams; |
501 | constexpr auto DidChangeConfigurationMethod = "workspace/didChangeConfiguration" ; |
502 | using DidChangeConfigurationParamsType = DidChangeConfigurationParams; |
503 | constexpr auto DidChangeWatchedFilesMethod = "workspace/didChangeWatchedFiles" ; |
504 | using DidChangeWatchedFilesParamsType = DidChangeWatchedFilesParams; |
505 | constexpr auto CreateFilesMethod = "workspace/didCreateFiles" ; |
506 | using CreateFilesParamsType = CreateFilesParams; |
507 | constexpr auto RenameFilesMethod = "workspace/didRenameFiles" ; |
508 | using RenameFilesParamsType = RenameFilesParams; |
509 | constexpr auto DeleteFilesMethod = "workspace/didDeleteFiles" ; |
510 | using DeleteFilesParamsType = DeleteFilesParams; |
511 | constexpr auto DidOpenTextDocumentMethod = "textDocument/didOpen" ; |
512 | using DidOpenTextDocumentParamsType = DidOpenTextDocumentParams; |
513 | constexpr auto DidChangeTextDocumentMethod = "textDocument/didChange" ; |
514 | using DidChangeTextDocumentParamsType = DidChangeTextDocumentParams; |
515 | constexpr auto WillSaveTextDocumentMethod = "textDocument/willSave" ; |
516 | using WillSaveTextDocumentParamsType = WillSaveTextDocumentParams; |
517 | constexpr auto DidSaveTextDocumentMethod = "textDocument/didSave" ; |
518 | using DidSaveTextDocumentParamsType = DidSaveTextDocumentParams; |
519 | constexpr auto DidCloseTextDocumentMethod = "textDocument/didClose" ; |
520 | using DidCloseTextDocumentParamsType = DidCloseTextDocumentParams; |
521 | constexpr auto PublishDiagnosticsMethod = "textDocument/publishDiagnostics" ; |
522 | using PublishDiagnosticsParamsType = PublishDiagnosticsParams; |
523 | } |
524 | |
525 | using RequestParams = std::variant< |
526 | InitializeParams, std::nullptr_t, ShowMessageRequestParams, ShowDocumentParams, |
527 | WorkDoneProgressCreateParams, RegistrationParams, UnregistrationParams, ConfigurationParams, |
528 | WorkspaceSymbolParams, ExecuteCommandParams, ApplyWorkspaceEditParams, CreateFilesParams, |
529 | RenameFilesParams, DeleteFilesParams, WillSaveTextDocumentParams, CompletionParams, |
530 | CompletionItem, HoverParams, SignatureHelpParams, DeclarationParams, DefinitionParams, |
531 | TypeDefinitionParams, ImplementationParams, ReferenceParams, DocumentHighlightParams, |
532 | DocumentSymbolParams, CodeActionParams, CodeAction, CodeLensParams, CodeLens, |
533 | DocumentLinkParams, DocumentLink, DocumentColorParams, ColorPresentationParams, |
534 | DocumentFormattingParams, DocumentRangeFormattingParams, DocumentOnTypeFormattingParams, |
535 | RenameParams, PrepareRenameParams, FoldingRangeParams, SelectionRangeParams, |
536 | CallHierarchyPrepareParams, CallHierarchyIncomingCallsParams, |
537 | CallHierarchyOutgoingCallsParams, SemanticTokensParams, SemanticTokensDeltaParams, |
538 | SemanticTokensRangeParams, LinkedEditingRangeParams, MonikerParams, QJsonValue>; |
539 | using NotificationParams = std::variant< |
540 | CancelParams, InitializedParams, std::nullptr_t, LogTraceParams, SetTraceParams, |
541 | ShowMessageParams, LogMessageParams, WorkDoneProgressCancelParams, QJsonObject, |
542 | DidChangeWorkspaceFoldersParams, DidChangeConfigurationParams, DidChangeWatchedFilesParams, |
543 | CreateFilesParams, RenameFilesParams, DeleteFilesParams, DidOpenTextDocumentParams, |
544 | DidChangeTextDocumentParams, WillSaveTextDocumentParams, DidSaveTextDocumentParams, |
545 | DidCloseTextDocumentParams, PublishDiagnosticsParams, QJsonValue>; |
546 | |
547 | } // namespace QLspSpecification |
548 | |
549 | QT_END_NAMESPACE |
550 | |
551 | #endif // QLANGUAGESERVERSPEC_P_H |
552 | |