server

package
v0.0.0-...-e49a3f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertUseStmt

func InsertUseStmt(
	qualifiedName *fqn.FQN,
	currPos *position.Position,
) []protocol.TextEdit

Types

type CompletionItemData

type CompletionItemData struct {
	CurrPos   *position.Position
	TargetPos *position.Position
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(client protocol.ClientCloser) *Server

func (*Server) CodeAction

func (*Server) CodeLens

func (*Server) CodeLensRefresh

func (s *Server) CodeLensRefresh(context.Context) error

func (*Server) Completion

func (s *Server) Completion(
	ctx context.Context,
	params *protocol.CompletionParams,
) (*protocol.CompletionList, error)

func (*Server) Definition

func (s *Server) Definition(
	ctx context.Context,
	params *protocol.DefinitionParams,
) ([]protocol.Location, error)

func (*Server) Diagnostic

func (s *Server) Diagnostic(context.Context, *string) (*string, error)

func (*Server) DiagnosticRefresh

func (s *Server) DiagnosticRefresh(context.Context) error

func (*Server) DidChange

func (s *Server) DidChange(
	ctx context.Context,
	params *protocol.DidChangeTextDocumentParams,
) error

func (*Server) DidChangeConfiguration

func (s *Server) DidChangeConfiguration(
	context.Context,
	*protocol.DidChangeConfigurationParams,
) error

func (*Server) DidChangeNotebookDocument

func (s *Server) DidChangeNotebookDocument(
	context.Context,
	*protocol.DidChangeNotebookDocumentParams,
) error

func (*Server) DidChangeWatchedFiles

func (s *Server) DidChangeWatchedFiles(
	context.Context,
	*protocol.DidChangeWatchedFilesParams,
) error

func (*Server) DidChangeWorkspaceFolders

func (s *Server) DidChangeWorkspaceFolders(
	context.Context,
	*protocol.DidChangeWorkspaceFoldersParams,
) error

func (*Server) DidClose

func (s *Server) DidClose(ctx context.Context, params *protocol.DidCloseTextDocumentParams) error

func (*Server) DidCloseNotebookDocument

func (s *Server) DidCloseNotebookDocument(
	context.Context,
	*protocol.DidCloseNotebookDocumentParams,
) error

func (*Server) DidCreateFiles

func (s *Server) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error

func (*Server) DidDeleteFiles

func (s *Server) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error

func (*Server) DidOpen

func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) error

func (*Server) DidOpenNotebookDocument

func (s *Server) DidOpenNotebookDocument(
	context.Context,
	*protocol.DidOpenNotebookDocumentParams,
) error

func (*Server) DidRenameFiles

func (s *Server) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error

func (*Server) DidSave

func (*Server) DidSaveNotebookDocument

func (s *Server) DidSaveNotebookDocument(
	context.Context,
	*protocol.DidSaveNotebookDocumentParams,
) error

func (*Server) DocumentColor

func (*Server) DocumentSymbol

func (s *Server) DocumentSymbol(
	context.Context,
	*protocol.DocumentSymbolParams,
) ([]any, error)

func (*Server) ExecuteCommand

func (s *Server) ExecuteCommand(
	context.Context,
	*protocol.ExecuteCommandParams,
) (any, error)

func (*Server) Exit

func (s *Server) Exit(context.Context) error

Exits with error code 0 when isShuttingDown, 1 otherwise.

func (*Server) FoldingRange

func (*Server) Formatting

func (s *Server) Formatting(
	ctx context.Context,
	params *protocol.DocumentFormattingParams,
) ([]protocol.TextEdit, error)

func (*Server) Hover

func (s *Server) Hover(ctx context.Context, params *protocol.HoverParams) (*protocol.Hover, error)

func (*Server) Implementation

func (*Server) Initialize

func (s *Server) Initialize(
	ctx context.Context,
	params *protocol.ParamInitialize,
) (*protocol.InitializeResult, error)

Entrypoint, must be requested first by the client.

func (*Server) Initialized

The client has received our Initialize response and is going to start sending normal requests.

func (*Server) InlayHint

func (*Server) InlayHintRefresh

func (s *Server) InlayHintRefresh(context.Context) error

func (*Server) InlineValue

func (*Server) LogTrace

func (*Server) Moniker

func (*Server) NonstandardRequest

func (s *Server) NonstandardRequest(
	ctx context.Context,
	method string,
	params any,
) (any, error)

func (*Server) Progress

func (*Server) References

func (*Server) Rename

func (*Server) Resolve

func (*Server) ResolveCodeAction

func (s *Server) ResolveCodeAction(
	context.Context,
	*protocol.CodeAction,
) (*protocol.CodeAction, error)

func (*Server) ResolveCodeLens

func (s *Server) ResolveCodeLens(context.Context, *protocol.CodeLens) (*protocol.CodeLens, error)

func (*Server) ResolveCompletionItem

func (s *Server) ResolveCompletionItem(
	ctx context.Context,
	item *protocol.CompletionItem,
) (*protocol.CompletionItem, error)

Completion will return basic information about the result, Resolve adds to that with documentation, importing etc. This is called when the completion item from Complete is selected/hovered.

func (s *Server) ResolveDocumentLink(
	context.Context,
	*protocol.DocumentLink,
) (*protocol.DocumentLink, error)

func (*Server) ResolveWorkspaceSymbol

func (s *Server) ResolveWorkspaceSymbol(
	context.Context,
	*protocol.WorkspaceSymbol,
) (*protocol.WorkspaceSymbol, error)

func (*Server) SelectionRange

func (*Server) SemanticTokensFull

func (*Server) SemanticTokensFullDelta

func (s *Server) SemanticTokensFullDelta(
	context.Context,
	*protocol.SemanticTokensDeltaParams,
) (any, error)

func (*Server) SemanticTokensRefresh

func (s *Server) SemanticTokensRefresh(context.Context) error

func (*Server) SetTrace

func (*Server) Shutdown

func (s *Server) Shutdown(context.Context) error

Starts the shutdown procedure, the client indicates it wants us to exit soon.

func (*Server) SignatureHelp

func (*Server) TypeDefinition

func (*Server) WillCreateFiles

func (*Server) WillDeleteFiles

func (*Server) WillRenameFiles

func (*Server) WillSave

func (*Server) WillSaveWaitUntil

func (*Server) WorkDoneProgressCancel

func (s *Server) WorkDoneProgressCancel(
	context.Context,
	*protocol.WorkDoneProgressCancelParams,
) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL