github.com/v2fly/tools@v0.100.0/internal/lsp/server_gen.go (about)

     1  // Copyright 2021 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  package lsp
     6  
     7  // code generated by helper. DO NOT EDIT.
     8  
     9  import (
    10  	"context"
    11  
    12  	"github.com/v2fly/tools/internal/lsp/protocol"
    13  )
    14  
    15  func (s *Server) CodeAction(ctx context.Context, params *protocol.CodeActionParams) ([]protocol.CodeAction, error) {
    16  	return s.codeAction(ctx, params)
    17  }
    18  
    19  func (s *Server) CodeLens(ctx context.Context, params *protocol.CodeLensParams) ([]protocol.CodeLens, error) {
    20  	return s.codeLens(ctx, params)
    21  }
    22  
    23  func (s *Server) CodeLensRefresh(context.Context) error {
    24  	return notImplemented("CodeLensRefresh")
    25  }
    26  
    27  func (s *Server) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error) {
    28  	return nil, notImplemented("ColorPresentation")
    29  }
    30  
    31  func (s *Server) Completion(ctx context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error) {
    32  	return s.completion(ctx, params)
    33  }
    34  
    35  func (s *Server) Declaration(context.Context, *protocol.DeclarationParams) (protocol.Declaration, error) {
    36  	return nil, notImplemented("Declaration")
    37  }
    38  
    39  func (s *Server) Definition(ctx context.Context, params *protocol.DefinitionParams) (protocol.Definition, error) {
    40  	return s.definition(ctx, params)
    41  }
    42  
    43  func (s *Server) Diagnostic(context.Context, *string) (*string, error) {
    44  	return nil, notImplemented("Diagnostic")
    45  }
    46  
    47  func (s *Server) DiagnosticRefresh(context.Context) error {
    48  	return notImplemented("DiagnosticRefresh")
    49  }
    50  
    51  func (s *Server) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error) {
    52  	return nil, notImplemented("DiagnosticWorkspace")
    53  }
    54  
    55  func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error {
    56  	return s.didChange(ctx, params)
    57  }
    58  
    59  func (s *Server) DidChangeConfiguration(ctx context.Context, _ *protocol.DidChangeConfigurationParams) error {
    60  	return s.didChangeConfiguration(ctx, nil)
    61  }
    62  
    63  func (s *Server) DidChangeWatchedFiles(ctx context.Context, params *protocol.DidChangeWatchedFilesParams) error {
    64  	return s.didChangeWatchedFiles(ctx, params)
    65  }
    66  
    67  func (s *Server) DidChangeWorkspaceFolders(ctx context.Context, params *protocol.DidChangeWorkspaceFoldersParams) error {
    68  	return s.didChangeWorkspaceFolders(ctx, params)
    69  }
    70  
    71  func (s *Server) DidClose(ctx context.Context, params *protocol.DidCloseTextDocumentParams) error {
    72  	return s.didClose(ctx, params)
    73  }
    74  
    75  func (s *Server) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error {
    76  	return notImplemented("DidCreateFiles")
    77  }
    78  
    79  func (s *Server) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error {
    80  	return notImplemented("DidDeleteFiles")
    81  }
    82  
    83  func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) error {
    84  	return s.didOpen(ctx, params)
    85  }
    86  
    87  func (s *Server) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error {
    88  	return notImplemented("DidRenameFiles")
    89  }
    90  
    91  func (s *Server) DidSave(ctx context.Context, params *protocol.DidSaveTextDocumentParams) error {
    92  	return s.didSave(ctx, params)
    93  }
    94  
    95  func (s *Server) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error) {
    96  	return nil, notImplemented("DocumentColor")
    97  }
    98  
    99  func (s *Server) DocumentHighlight(ctx context.Context, params *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error) {
   100  	return s.documentHighlight(ctx, params)
   101  }
   102  
   103  func (s *Server) DocumentLink(ctx context.Context, params *protocol.DocumentLinkParams) ([]protocol.DocumentLink, error) {
   104  	return s.documentLink(ctx, params)
   105  }
   106  
   107  func (s *Server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) {
   108  	return s.documentSymbol(ctx, params)
   109  }
   110  
   111  func (s *Server) ExecuteCommand(ctx context.Context, params *protocol.ExecuteCommandParams) (interface{}, error) {
   112  	return s.executeCommand(ctx, params)
   113  }
   114  
   115  func (s *Server) Exit(ctx context.Context) error {
   116  	return s.exit(ctx)
   117  }
   118  
   119  func (s *Server) FoldingRange(ctx context.Context, params *protocol.FoldingRangeParams) ([]protocol.FoldingRange, error) {
   120  	return s.foldingRange(ctx, params)
   121  }
   122  
   123  func (s *Server) Formatting(ctx context.Context, params *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error) {
   124  	return s.formatting(ctx, params)
   125  }
   126  
   127  func (s *Server) Hover(ctx context.Context, params *protocol.HoverParams) (*protocol.Hover, error) {
   128  	return s.hover(ctx, params)
   129  }
   130  
   131  func (s *Server) Implementation(ctx context.Context, params *protocol.ImplementationParams) (protocol.Definition, error) {
   132  	return s.implementation(ctx, params)
   133  }
   134  
   135  func (s *Server) IncomingCalls(ctx context.Context, params *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error) {
   136  	return s.incomingCalls(ctx, params)
   137  }
   138  
   139  func (s *Server) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error) {
   140  	return s.initialize(ctx, params)
   141  }
   142  
   143  func (s *Server) Initialized(ctx context.Context, params *protocol.InitializedParams) error {
   144  	return s.initialized(ctx, params)
   145  }
   146  
   147  func (s *Server) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error) {
   148  	return nil, notImplemented("LinkedEditingRange")
   149  }
   150  
   151  func (s *Server) LogTrace(context.Context, *protocol.LogTraceParams) error {
   152  	return notImplemented("LogTrace")
   153  }
   154  
   155  func (s *Server) Moniker(context.Context, *protocol.MonikerParams) ([]protocol.Moniker, error) {
   156  	return nil, notImplemented("Moniker")
   157  }
   158  
   159  func (s *Server) NonstandardRequest(ctx context.Context, method string, params interface{}) (interface{}, error) {
   160  	return s.nonstandardRequest(ctx, method, params)
   161  }
   162  
   163  func (s *Server) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error) {
   164  	return nil, notImplemented("OnTypeFormatting")
   165  }
   166  
   167  func (s *Server) OutgoingCalls(ctx context.Context, params *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error) {
   168  	return s.outgoingCalls(ctx, params)
   169  }
   170  
   171  func (s *Server) PrepareCallHierarchy(ctx context.Context, params *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error) {
   172  	return s.prepareCallHierarchy(ctx, params)
   173  }
   174  
   175  func (s *Server) PrepareRename(ctx context.Context, params *protocol.PrepareRenameParams) (*protocol.Range, error) {
   176  	return s.prepareRename(ctx, params)
   177  }
   178  
   179  func (s *Server) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error) {
   180  	return nil, notImplemented("RangeFormatting")
   181  }
   182  
   183  func (s *Server) References(ctx context.Context, params *protocol.ReferenceParams) ([]protocol.Location, error) {
   184  	return s.references(ctx, params)
   185  }
   186  
   187  func (s *Server) Rename(ctx context.Context, params *protocol.RenameParams) (*protocol.WorkspaceEdit, error) {
   188  	return s.rename(ctx, params)
   189  }
   190  
   191  func (s *Server) Resolve(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error) {
   192  	return nil, notImplemented("Resolve")
   193  }
   194  
   195  func (s *Server) ResolveCodeAction(context.Context, *protocol.CodeAction) (*protocol.CodeAction, error) {
   196  	return nil, notImplemented("ResolveCodeAction")
   197  }
   198  
   199  func (s *Server) ResolveCodeLens(context.Context, *protocol.CodeLens) (*protocol.CodeLens, error) {
   200  	return nil, notImplemented("ResolveCodeLens")
   201  }
   202  
   203  func (s *Server) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error) {
   204  	return nil, notImplemented("ResolveDocumentLink")
   205  }
   206  
   207  func (s *Server) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error) {
   208  	return nil, notImplemented("SelectionRange")
   209  }
   210  
   211  func (s *Server) SemanticTokensFull(ctx context.Context, p *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error) {
   212  	return s.semanticTokensFull(ctx, p)
   213  }
   214  
   215  func (s *Server) SemanticTokensFullDelta(ctx context.Context, p *protocol.SemanticTokensDeltaParams) (interface{}, error) {
   216  	return s.semanticTokensFullDelta(ctx, p)
   217  }
   218  
   219  func (s *Server) SemanticTokensRange(ctx context.Context, p *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error) {
   220  	return s.semanticTokensRange(ctx, p)
   221  }
   222  
   223  func (s *Server) SemanticTokensRefresh(ctx context.Context) error {
   224  	return s.semanticTokensRefresh(ctx)
   225  }
   226  
   227  func (s *Server) SetTrace(context.Context, *protocol.SetTraceParams) error {
   228  	return notImplemented("SetTrace")
   229  }
   230  
   231  func (s *Server) ShowDocument(context.Context, *protocol.ShowDocumentParams) (*protocol.ShowDocumentResult, error) {
   232  	return nil, notImplemented("ShowDocument")
   233  }
   234  
   235  func (s *Server) Shutdown(ctx context.Context) error {
   236  	return s.shutdown(ctx)
   237  }
   238  
   239  func (s *Server) SignatureHelp(ctx context.Context, params *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error) {
   240  	return s.signatureHelp(ctx, params)
   241  }
   242  
   243  func (s *Server) Symbol(ctx context.Context, params *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error) {
   244  	return s.symbol(ctx, params)
   245  }
   246  
   247  func (s *Server) TypeDefinition(ctx context.Context, params *protocol.TypeDefinitionParams) (protocol.Definition, error) {
   248  	return s.typeDefinition(ctx, params)
   249  }
   250  
   251  func (s *Server) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error) {
   252  	return nil, notImplemented("WillCreateFiles")
   253  }
   254  
   255  func (s *Server) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error) {
   256  	return nil, notImplemented("WillDeleteFiles")
   257  }
   258  
   259  func (s *Server) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error) {
   260  	return nil, notImplemented("WillRenameFiles")
   261  }
   262  
   263  func (s *Server) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error {
   264  	return notImplemented("WillSave")
   265  }
   266  
   267  func (s *Server) WillSaveWaitUntil(context.Context, *protocol.WillSaveTextDocumentParams) ([]protocol.TextEdit, error) {
   268  	return nil, notImplemented("WillSaveWaitUntil")
   269  }
   270  
   271  func (s *Server) WorkDoneProgressCancel(ctx context.Context, params *protocol.WorkDoneProgressCancelParams) error {
   272  	return s.workDoneProgressCancel(ctx, params)
   273  }