| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
package server |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
import ( |
| 10 |
"context" |
| 11 |
"fmt" |
| 12 |
|
| 13 |
"golang.org/x/tools/gopls/internal/protocol" |
| 14 |
"golang.org/x/tools/internal/jsonrpc2" |
| 15 |
) |
| 16 |
|
| 17 |
func (s *server) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error) { |
| 18 |
return nil, notImplemented("ColorPresentation") |
| 19 |
} |
| 20 |
|
| 21 |
func (s *server) Declaration(context.Context, *protocol.DeclarationParams) (*protocol.Or_textDocument_declaration, error) { |
| 22 |
return nil, notImplemented("Declaration") |
| 23 |
} |
| 24 |
|
| 25 |
func (s *server) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error) { |
| 26 |
return nil, notImplemented("DiagnosticWorkspace") |
| 27 |
} |
| 28 |
|
| 29 |
func (s *server) DidChangeNotebookDocument(context.Context, *protocol.DidChangeNotebookDocumentParams) error { |
| 30 |
return notImplemented("DidChangeNotebookDocument") |
| 31 |
} |
| 32 |
|
| 33 |
func (s *server) DidCloseNotebookDocument(context.Context, *protocol.DidCloseNotebookDocumentParams) error { |
| 34 |
return notImplemented("DidCloseNotebookDocument") |
| 35 |
} |
| 36 |
|
| 37 |
func (s *server) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error { |
| 38 |
return notImplemented("DidDeleteFiles") |
| 39 |
} |
| 40 |
|
| 41 |
func (s *server) DidOpenNotebookDocument(context.Context, *protocol.DidOpenNotebookDocumentParams) error { |
| 42 |
return notImplemented("DidOpenNotebookDocument") |
| 43 |
} |
| 44 |
|
| 45 |
func (s *server) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error { |
| 46 |
return notImplemented("DidRenameFiles") |
| 47 |
} |
| 48 |
|
| 49 |
func (s *server) DidSaveNotebookDocument(context.Context, *protocol.DidSaveNotebookDocumentParams) error { |
| 50 |
return notImplemented("DidSaveNotebookDocument") |
| 51 |
} |
| 52 |
|
| 53 |
func (s *server) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error) { |
| 54 |
return nil, notImplemented("DocumentColor") |
| 55 |
} |
| 56 |
|
| 57 |
func (s *server) InlineCompletion(context.Context, *protocol.InlineCompletionParams) (*protocol.Or_Result_textDocument_inlineCompletion, error) { |
| 58 |
return nil, notImplemented("InlineCompletion") |
| 59 |
} |
| 60 |
|
| 61 |
func (s *server) InlineValue(context.Context, *protocol.InlineValueParams) ([]protocol.InlineValue, error) { |
| 62 |
return nil, notImplemented("InlineValue") |
| 63 |
} |
| 64 |
|
| 65 |
func (s *server) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error) { |
| 66 |
return nil, notImplemented("LinkedEditingRange") |
| 67 |
} |
| 68 |
|
| 69 |
func (s *server) Moniker(context.Context, *protocol.MonikerParams) ([]protocol.Moniker, error) { |
| 70 |
return nil, notImplemented("Moniker") |
| 71 |
} |
| 72 |
|
| 73 |
func (s *server) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error) { |
| 74 |
return nil, notImplemented("OnTypeFormatting") |
| 75 |
} |
| 76 |
|
| 77 |
func (s *server) Progress(context.Context, *protocol.ProgressParams) error { |
| 78 |
return notImplemented("Progress") |
| 79 |
} |
| 80 |
|
| 81 |
func (s *server) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error) { |
| 82 |
return nil, notImplemented("RangeFormatting") |
| 83 |
} |
| 84 |
|
| 85 |
func (s *server) RangesFormatting(context.Context, *protocol.DocumentRangesFormattingParams) ([]protocol.TextEdit, error) { |
| 86 |
return nil, notImplemented("RangesFormatting") |
| 87 |
} |
| 88 |
|
| 89 |
func (s *server) Resolve(context.Context, *protocol.InlayHint) (*protocol.InlayHint, error) { |
| 90 |
return nil, notImplemented("Resolve") |
| 91 |
} |
| 92 |
|
| 93 |
func (s *server) ResolveCodeLens(context.Context, *protocol.CodeLens) (*protocol.CodeLens, error) { |
| 94 |
return nil, notImplemented("ResolveCodeLens") |
| 95 |
} |
| 96 |
|
| 97 |
func (s *server) ResolveCompletionItem(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error) { |
| 98 |
return nil, notImplemented("ResolveCompletionItem") |
| 99 |
} |
| 100 |
|
| 101 |
func (s *server) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error) { |
| 102 |
return nil, notImplemented("ResolveDocumentLink") |
| 103 |
} |
| 104 |
|
| 105 |
func (s *server) ResolveWorkspaceSymbol(context.Context, *protocol.WorkspaceSymbol) (*protocol.WorkspaceSymbol, error) { |
| 106 |
return nil, notImplemented("ResolveWorkspaceSymbol") |
| 107 |
} |
| 108 |
|
| 109 |
func (s *server) SemanticTokensFullDelta(context.Context, *protocol.SemanticTokensDeltaParams) (any, error) { |
| 110 |
return nil, notImplemented("SemanticTokensFullDelta") |
| 111 |
} |
| 112 |
|
| 113 |
func (s *server) SetTrace(context.Context, *protocol.SetTraceParams) error { |
| 114 |
return notImplemented("SetTrace") |
| 115 |
} |
| 116 |
|
| 117 |
func (s *server) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error) { |
| 118 |
return nil, notImplemented("WillCreateFiles") |
| 119 |
} |
| 120 |
|
| 121 |
func (s *server) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error) { |
| 122 |
return nil, notImplemented("WillDeleteFiles") |
| 123 |
} |
| 124 |
|
| 125 |
func (s *server) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error) { |
| 126 |
return nil, notImplemented("WillRenameFiles") |
| 127 |
} |
| 128 |
|
| 129 |
func (s *server) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error { |
| 130 |
return notImplemented("WillSave") |
| 131 |
} |
| 132 |
|
| 133 |
func (s *server) WillSaveWaitUntil(context.Context, *protocol.WillSaveTextDocumentParams) ([]protocol.TextEdit, error) { |
| 134 |
return nil, notImplemented("WillSaveWaitUntil") |
| 135 |
} |
| 136 |
|
| 137 |
func (s *server) TextDocumentContent(context.Context, *protocol.TextDocumentContentParams) (*protocol.TextDocumentContentResult, error) { |
| 138 |
return nil, notImplemented("TextDocumentContent") |
| 139 |
} |
| 140 |
|
| 141 |
func notImplemented(method string) error { |
| 142 |
return fmt.Errorf("%w: %q not yet implemented", jsonrpc2.ErrMethodNotFound, method) |
| 143 |
} |