summaryrefslogtreecommitdiff
path: root/internal/lsp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-16 17:51:44 +0300
committerPaul Buetow <paul@buetow.org>2025-08-16 17:51:44 +0300
commit1b01e35c34b953cbf51298f4650dc3215c382a4f (patch)
treed110ee48f9baa382b1906e74f45d42a264351f4c /internal/lsp
parent77ff5d250ecc5cc8d4a493f4b98c5b82c6b84283 (diff)
feat(logging): add LLM stats (averages and per-minute)v0.0.2
Diffstat (limited to 'internal/lsp')
-rw-r--r--internal/lsp/handlers.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/lsp/handlers.go b/internal/lsp/handlers.go
index ae43b4c..d8c13a1 100644
--- a/internal/lsp/handlers.go
+++ b/internal/lsp/handlers.go
@@ -278,10 +278,9 @@ func inParamList(current string, cursor int) bool {
return open >= 0 && cursor > open && (close == -1 || cursor <= close)
}
-// TODO: Not just be a Go code completion engine, make this flexible.
func buildPrompts(inParams bool, p CompletionParams, above, current, below, funcCtx string) (string, string) {
if inParams {
- sys := "You are a terse Go code completion engine for function signatures. Return only the parameter list contents (without parentheses), no braces, no prose. Prefer idiomatic names and types."
+ sys := "You are a code completion engine for function signatures. Return only the parameter list contents (without parentheses), no braces, no prose. Prefer idiomatic names and types."
user := fmt.Sprintf("Cursor is inside the function parameter list. Suggest only the parameter list (no parentheses).\nFunction line: %s\nCurrent line (cursor at %d): %s", funcCtx, p.Position.Character, current)
return sys, user
}