Lines Matching defs:server
89 type server struct { struct
90 ctx context.Context
91 conn *jsonrpc2.Conn
92 client lsp.Client
94 files map[string]*file
95 filesMutex sync.Mutex
118 …ver) DidChangeWorkspaceFolders(ctx context.Context, p *lsp.DidChangeWorkspaceFoldersParams) error {
122 func (s *server) Initialized(ctx context.Context, p *lsp.InitializedParams) error {
126 func (s *server) Exit(ctx context.Context) error {
130 …s *server) DidChangeConfiguration(ctx context.Context, p *lsp.DidChangeConfigurationParams) error {
134 func (s *server) DidOpen(ctx context.Context, p *lsp.DidOpenTextDocumentParams) error {
138 func (s *server) DidChange(ctx context.Context, p *lsp.DidChangeTextDocumentParams) error {
142 func (s *server) DidClose(ctx context.Context, p *lsp.DidCloseTextDocumentParams) error {
146 func (s *server) DidSave(ctx context.Context, p *lsp.DidSaveTextDocumentParams) error {
150 func (s *server) WillSave(ctx context.Context, p *lsp.WillSaveTextDocumentParams) error {
154 … (s *server) DidChangeWatchedFiles(ctx context.Context, p *lsp.DidChangeWatchedFilesParams) error {
158 func (s *server) Progress(ctx context.Context, p *lsp.ProgressParams) error {
162 func (s *server) SetTraceNotification(ctx context.Context, p *lsp.SetTraceParams) error {
166 func (s *server) LogTraceNotification(ctx context.Context, p *lsp.LogTraceParams) error {
170 …*server) Implementation(ctx context.Context, p *lsp.ImplementationParams) ([]lsp.Location, error) {
174 …*server) TypeDefinition(ctx context.Context, p *lsp.TypeDefinitionParams) ([]lsp.Location, error) {
178 …r) DocumentColor(ctx context.Context, p *lsp.DocumentColorParams) ([]lsp.ColorInformation, error) {
182 …resentation(ctx context.Context, p *lsp.ColorPresentationParams) ([]lsp.ColorPresentation, error) {
186 …*server) FoldingRange(ctx context.Context, p *lsp.FoldingRangeParams) ([]lsp.FoldingRange, error) {
190 …server) Declaration(ctx context.Context, p *lsp.DeclarationParams) ([]lsp.DeclarationLink, error) {
194 …r) SelectionRange(ctx context.Context, p *lsp.SelectionRangeParams) ([]lsp.SelectionRange, error) {
198 …nc (s *server) Initialize(ctx context.Context, p *lsp.ParamInitia) (*lsp.InitializeResult, error) {
215 func (s *server) Shutdown(ctx context.Context) error {
219 …WillSaveWaitUntil(ctx context.Context, p *lsp.WillSaveTextDocumentParams) ([]lsp.TextEdit, error) {
223 …(s *server) Completion(ctx context.Context, p *lsp.CompletionParams) (*lsp.CompletionList, error) {
227 func (s *server) Resolve(ctx context.Context, p *lsp.CompletionItem) (*lsp.CompletionItem, error) {
231 func (s *server) Hover(ctx context.Context, p *lsp.HoverParams) (*lsp.Hover, error) {
286 …erver) SignatureHelp(ctx context.Context, p *lsp.SignatureHelpParams) (*lsp.SignatureHelp, error) {
290 func (s *server) Definition(ctx context.Context, p *lsp.DefinitionParams) ([]lsp.Location, error) {
307 func (s *server) References(ctx context.Context, p *lsp.ReferenceParams) ([]lsp.Location, error) {
327 …ntHighlight(ctx context.Context, p *lsp.DocumentHighlightParams) ([]lsp.DocumentHighlight, error) {
331 …r) DocumentSymbol(ctx context.Context, p *lsp.DocumentSymbolParams) ([]lsp.DocumentSymbol, error) {
335 …nc (s *server) CodeAction(ctx context.Context, p *lsp.CodeActionParams) ([]lsp.CodeAction, error) {
339 …erver) Symbol(ctx context.Context, p *lsp.WorkspaceSymbolParams) ([]lsp.SymbolInformation, error) {
343 func (s *server) CodeLens(ctx context.Context, p *lsp.CodeLensParams) ([]lsp.CodeLens, error) {
347 func (s *server) ResolveCodeLens(ctx context.Context, p *lsp.CodeLens) (*lsp.CodeLens, error) {
351 …*server) DocumentLink(ctx context.Context, p *lsp.DocumentLinkParams) ([]lsp.DocumentLink, error) {
355 …*server) ResolveDocumentLink(ctx context.Context, p *lsp.DocumentLink) (*lsp.DocumentLink, error) {
359 …*server) Formatting(ctx context.Context, p *lsp.DocumentFormattingParams) ([]lsp.TextEdit, error) {
422 …angeFormatting(ctx context.Context, p *lsp.DocumentRangeFormattingParams) ([]lsp.TextEdit, error) {
426 …ypeFormatting(ctx context.Context, p *lsp.DocumentOnTypeFormattingParams) ([]lsp.TextEdit, error) {
430 func (s *server) Rename(ctx context.Context, p *lsp.RenameParams) (*lsp.WorkspaceEdit, error) {
450 …nc (s *server) PrepareRename(ctx context.Context, p *lsp.PrepareRenameParams) (*lsp.Range, error) {
454 …(s *server) ExecuteCommand(ctx context.Context, p *lsp.ExecuteCommandParams) (interface{}, error) {
459 func (s *server) processFile(ctx context.Context, uri, source string) error {
485 func (s *server) getFile(uri string) *file {