(ctx context.Context, params *lsproto.CompletionItem, reqMsg *lsproto.RequestMessage)
| 1576 | } |
| 1577 | |
| 1578 | func (s *Server) handleCompletionItemResolve(ctx context.Context, params *lsproto.CompletionItem, reqMsg *lsproto.RequestMessage) (lsproto.CompletionResolveResponse, error) { |
| 1579 | data := params.Data |
| 1580 | languageService, err := s.session.GetLanguageService(ctx, lsconv.FileNameToDocumentURI(data.FileName)) |
| 1581 | if err != nil { |
| 1582 | return nil, err |
| 1583 | } |
| 1584 | defer s.recover(reqMsg) |
| 1585 | return languageService.ResolveCompletionItem( |
| 1586 | ctx, |
| 1587 | params, |
| 1588 | data, |
| 1589 | ) |
| 1590 | } |
| 1591 | |
| 1592 | func (s *Server) handleDocumentFormat(ctx context.Context, ls *ls.LanguageService, params *lsproto.DocumentFormattingParams) (lsproto.DocumentFormattingResponse, error) { |
| 1593 | return ls.ProvideFormatDocument( |
nothing calls this directly
no test coverage detected