Skip to content

Commit

Permalink
Rename CandidatesAtPos to CompletionAtPos
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Jan 3, 2024
1 parent dc5aaf3 commit cab95f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/langserver/handlers/complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (svc *service) TextDocumentComplete(ctx context.Context, params lsp.Complet
}

svc.logger.Printf("Looking for candidates at %q -> %#v", doc.Filename, pos)
candidates, err := d.CandidatesAtPos(ctx, doc.Filename, pos)
candidates, err := d.CompletionAtPos(ctx, doc.Filename, pos)
svc.logger.Printf("received candidates: %#v", candidates)
return ilsp.ToCompletionList(candidates, cc.TextDocument), err
}

0 comments on commit cab95f5

Please sign in to comment.