• Home
  • Raw
  • Download

Lines Matching defs:server

94 type server struct {  struct
95 ctx context.Context
96 conn *jsonrpc2.Conn
97 client lsp.Client
99 files map[string]*file
100 filesMutex sync.Mutex
123 …ver) DidChangeWorkspaceFolders(ctx context.Context, p *lsp.DidChangeWorkspaceFoldersParams) error {
127 func (s *server) Initialized(ctx context.Context, p *lsp.InitializedParams) error {
131 func (s *server) Exit(ctx context.Context) error {
135 …s *server) DidChangeConfiguration(ctx context.Context, p *lsp.DidChangeConfigurationParams) error {
139 func (s *server) DidOpen(ctx context.Context, p *lsp.DidOpenTextDocumentParams) error {
143 func (s *server) DidChange(ctx context.Context, p *lsp.DidChangeTextDocumentParams) error {
147 func (s *server) DidClose(ctx context.Context, p *lsp.DidCloseTextDocumentParams) error {
151 func (s *server) DidSave(ctx context.Context, p *lsp.DidSaveTextDocumentParams) error {
155 func (s *server) WillSave(ctx context.Context, p *lsp.WillSaveTextDocumentParams) error {
159 … (s *server) DidChangeWatchedFiles(ctx context.Context, p *lsp.DidChangeWatchedFilesParams) error {
163 func (s *server) Progress(ctx context.Context, p *lsp.ProgressParams) error {
167 func (s *server) SetTraceNotification(ctx context.Context, p *lsp.SetTraceParams) error {
171 func (s *server) LogTraceNotification(ctx context.Context, p *lsp.LogTraceParams) error {
175 …*server) Implementation(ctx context.Context, p *lsp.ImplementationParams) ([]lsp.Location, error) {
179 …*server) TypeDefinition(ctx context.Context, p *lsp.TypeDefinitionParams) ([]lsp.Location, error) {
183 …r) DocumentColor(ctx context.Context, p *lsp.DocumentColorParams) ([]lsp.ColorInformation, error) {
187 …resentation(ctx context.Context, p *lsp.ColorPresentationParams) ([]lsp.ColorPresentation, error) {
191 …*server) FoldingRange(ctx context.Context, p *lsp.FoldingRangeParams) ([]lsp.FoldingRange, error) {
195 …server) Declaration(ctx context.Context, p *lsp.DeclarationParams) ([]lsp.DeclarationLink, error) {
199 …r) SelectionRange(ctx context.Context, p *lsp.SelectionRangeParams) ([]lsp.SelectionRange, error) {
203 …nc (s *server) Initialize(ctx context.Context, p *lsp.ParamInitia) (*lsp.InitializeResult, error) {
220 func (s *server) Shutdown(ctx context.Context) error {
224 …WillSaveWaitUntil(ctx context.Context, p *lsp.WillSaveTextDocumentParams) ([]lsp.TextEdit, error) {
228 …(s *server) Completion(ctx context.Context, p *lsp.CompletionParams) (*lsp.CompletionList, error) {
232 func (s *server) Resolve(ctx context.Context, p *lsp.CompletionItem) (*lsp.CompletionItem, error) {
236 func (s *server) Hover(ctx context.Context, p *lsp.HoverParams) (*lsp.Hover, error) {
291 …erver) SignatureHelp(ctx context.Context, p *lsp.SignatureHelpParams) (*lsp.SignatureHelp, error) {
295 func (s *server) Definition(ctx context.Context, p *lsp.DefinitionParams) ([]lsp.Location, error) {
312 func (s *server) References(ctx context.Context, p *lsp.ReferenceParams) ([]lsp.Location, error) {
332 …ntHighlight(ctx context.Context, p *lsp.DocumentHighlightParams) ([]lsp.DocumentHighlight, error) {
336 …r) DocumentSymbol(ctx context.Context, p *lsp.DocumentSymbolParams) ([]lsp.DocumentSymbol, error) {
340 …nc (s *server) CodeAction(ctx context.Context, p *lsp.CodeActionParams) ([]lsp.CodeAction, error) {
344 …erver) Symbol(ctx context.Context, p *lsp.WorkspaceSymbolParams) ([]lsp.SymbolInformation, error) {
348 func (s *server) CodeLens(ctx context.Context, p *lsp.CodeLensParams) ([]lsp.CodeLens, error) {
352 func (s *server) ResolveCodeLens(ctx context.Context, p *lsp.CodeLens) (*lsp.CodeLens, error) {
356 …*server) DocumentLink(ctx context.Context, p *lsp.DocumentLinkParams) ([]lsp.DocumentLink, error) {
360 …*server) ResolveDocumentLink(ctx context.Context, p *lsp.DocumentLink) (*lsp.DocumentLink, error) {
364 …*server) Formatting(ctx context.Context, p *lsp.DocumentFormattingParams) ([]lsp.TextEdit, error) {
427 …angeFormatting(ctx context.Context, p *lsp.DocumentRangeFormattingParams) ([]lsp.TextEdit, error) {
431 …ypeFormatting(ctx context.Context, p *lsp.DocumentOnTypeFormattingParams) ([]lsp.TextEdit, error) {
435 func (s *server) Rename(ctx context.Context, p *lsp.RenameParams) (*lsp.WorkspaceEdit, error) {
455 …nc (s *server) PrepareRename(ctx context.Context, p *lsp.PrepareRenameParams) (*lsp.Range, error) {
459 …(s *server) ExecuteCommand(ctx context.Context, p *lsp.ExecuteCommandParams) (interface{}, error) {
464 func (s *server) processFile(ctx context.Context, uri, source string) error {
490 func (s *server) getFile(uri string) *file {