|
| 1 | +// Copyright 2022 The Go Authors. All rights reserved. |
| 2 | +// Use of this source code is governed by a BSD-style |
| 3 | +// license that can be found in the LICENSE file. |
| 4 | + |
| 5 | +//go:build go1.19 |
| 6 | +// +build go1.19 |
| 7 | + |
| 8 | +package main |
| 9 | + |
| 10 | +// various data tables |
| 11 | + |
| 12 | +// methodNames is a map from the method to the name of the function that handles it |
| 13 | +var methodNames = map[string]string{ |
| 14 | + "$/cancelRequest": "CancelRequest", |
| 15 | + "$/logTrace": "LogTrace", |
| 16 | + "$/progress": "Progress", |
| 17 | + "$/setTrace": "SetTrace", |
| 18 | + "callHierarchy/incomingCalls": "IncomingCalls", |
| 19 | + "callHierarchy/outgoingCalls": "OutgoingCalls", |
| 20 | + "client/registerCapability": "RegisterCapability", |
| 21 | + "client/unregisterCapability": "UnregisterCapability", |
| 22 | + "codeAction/resolve": "ResolveCodeAction", |
| 23 | + "codeLens/resolve": "ResolveCodeLens", |
| 24 | + "completionItem/resolve": "ResolveCompletionItem", |
| 25 | + "documentLink/resolve": "ResolveDocumentLink", |
| 26 | + "exit": "Exit", |
| 27 | + "initialize": "Initialize", |
| 28 | + "initialized": "Initialized", |
| 29 | + "inlayHint/resolve": "Resolve", |
| 30 | + "notebookDocument/didChange": "DidChangeNotebookDocument", |
| 31 | + "notebookDocument/didClose": "DidCloseNotebookDocument", |
| 32 | + "notebookDocument/didOpen": "DidOpenNotebookDocument", |
| 33 | + "notebookDocument/didSave": "DidSaveNotebookDocument", |
| 34 | + "shutdown": "Shutdown", |
| 35 | + "telemetry/event": "Event", |
| 36 | + "textDocument/codeAction": "CodeAction", |
| 37 | + "textDocument/codeLens": "CodeLens", |
| 38 | + "textDocument/colorPresentation": "ColorPresentation", |
| 39 | + "textDocument/completion": "Completion", |
| 40 | + "textDocument/declaration": "Declaration", |
| 41 | + "textDocument/definition": "Definition", |
| 42 | + "textDocument/diagnostic": "Diagnostic", |
| 43 | + "textDocument/didChange": "DidChange", |
| 44 | + "textDocument/didClose": "DidClose", |
| 45 | + "textDocument/didOpen": "DidOpen", |
| 46 | + "textDocument/didSave": "DidSave", |
| 47 | + "textDocument/documentColor": "DocumentColor", |
| 48 | + "textDocument/documentHighlight": "DocumentHighlight", |
| 49 | + "textDocument/documentLink": "DocumentLink", |
| 50 | + "textDocument/documentSymbol": "DocumentSymbol", |
| 51 | + "textDocument/foldingRange": "FoldingRange", |
| 52 | + "textDocument/formatting": "Formatting", |
| 53 | + "textDocument/hover": "Hover", |
| 54 | + "textDocument/implementation": "Implementation", |
| 55 | + "textDocument/inlayHint": "InlayHint", |
| 56 | + "textDocument/inlineValue": "InlineValue", |
| 57 | + "textDocument/linkedEditingRange": "LinkedEditingRange", |
| 58 | + "textDocument/moniker": "Moniker", |
| 59 | + "textDocument/onTypeFormatting": "OnTypeFormatting", |
| 60 | + "textDocument/prepareCallHierarchy": "PrepareCallHierarchy", |
| 61 | + "textDocument/prepareRename": "PrepareRename", |
| 62 | + "textDocument/prepareTypeHierarchy": "PrepareTypeHierarchy", |
| 63 | + "textDocument/publishDiagnostics": "PublishDiagnostics", |
| 64 | + "textDocument/rangeFormatting": "RangeFormatting", |
| 65 | + "textDocument/references": "References", |
| 66 | + "textDocument/rename": "Rename", |
| 67 | + "textDocument/selectionRange": "SelectionRange", |
| 68 | + "textDocument/semanticTokens/full": "SemanticTokensFull", |
| 69 | + "textDocument/semanticTokens/full/delta": "SemanticTokensFullDelta", |
| 70 | + "textDocument/semanticTokens/range": "SemanticTokensRange", |
| 71 | + "textDocument/signatureHelp": "SignatureHelp", |
| 72 | + "textDocument/typeDefinition": "TypeDefinition", |
| 73 | + "textDocument/willSave": "WillSave", |
| 74 | + "textDocument/willSaveWaitUntil": "WillSaveWaitUntil", |
| 75 | + "typeHierarchy/subtypes": "Subtypes", |
| 76 | + "typeHierarchy/supertypes": "Supertypes", |
| 77 | + "window/logMessage": "LogMessage", |
| 78 | + "window/showDocument": "ShowDocument", |
| 79 | + "window/showMessage": "ShowMessage", |
| 80 | + "window/showMessageRequest": "ShowMessageRequest", |
| 81 | + "window/workDoneProgress/cancel": "WorkDoneProgressCancel", |
| 82 | + "window/workDoneProgress/create": "WorkDoneProgressCreate", |
| 83 | + "workspace/applyEdit": "ApplyEdit", |
| 84 | + "workspace/codeLens/refresh": "CodeLensRefresh", |
| 85 | + "workspace/configuration": "Configuration", |
| 86 | + "workspace/diagnostic": "DiagnosticWorkspace", |
| 87 | + "workspace/diagnostic/refresh": "DiagnosticRefresh", |
| 88 | + "workspace/didChangeConfiguration": "DidChangeConfiguration", |
| 89 | + "workspace/didChangeWatchedFiles": "DidChangeWatchedFiles", |
| 90 | + "workspace/didChangeWorkspaceFolders": "DidChangeWorkspaceFolders", |
| 91 | + "workspace/didCreateFiles": "DidCreateFiles", |
| 92 | + "workspace/didDeleteFiles": "DidDeleteFiles", |
| 93 | + "workspace/didRenameFiles": "DidRenameFiles", |
| 94 | + "workspace/executeCommand": "ExecuteCommand", |
| 95 | + "workspace/inlayHint/refresh": "InlayHintRefresh", |
| 96 | + "workspace/inlineValue/refresh": "InlineValueRefresh", |
| 97 | + "workspace/semanticTokens/refresh": "SemanticTokensRefresh", |
| 98 | + "workspace/symbol": "Symbol", |
| 99 | + "workspace/willCreateFiles": "WillCreateFiles", |
| 100 | + "workspace/willDeleteFiles": "WillDeleteFiles", |
| 101 | + "workspace/willRenameFiles": "WillRenameFiles", |
| 102 | + "workspace/workspaceFolders": "WorkspaceFolders", |
| 103 | + "workspaceSymbol/resolve": "ResolveWorkspaceSymbol", |
| 104 | +} |
0 commit comments