summaryrefslogtreecommitdiff
path: root/internal/lsp
AgeCommit message (Collapse)Author
2025-08-16feat(lsp): code action to rewrite selection with instruction detectionPaul Buetow
- Adds textDocument/codeAction handler that rewrites the selected range.\n- Instruction preference: strict ;text; marker first, then //, #, -- line comments, then single-line block comments (/* */ and <!-- -->). Earliest in the selection wins.\n- Removes the matched instruction from the selection before sending to LLM.\n- README: document code action workflow and instruction formats.
2025-08-16refactor(config): drop env-based config (except OPENAI_API_KEY)Paul Buetow
- Switch to config-file-only; only OPENAI_API_KEY read from env.\n- llm: replace env autodetect with Config + NewFromConfig; add newOpenAI/newOllama.\n- lsp: NewServer now accepts injected llm.Client.\n- cli: remove env overrides; extend appConfig with provider-specific fields; build client from config + OPENAI_API_KEY.\n- docs: update README (config-only, defaults to OpenAI, minimal example); simplify flags table.\n- add config.json.example.\n- prompts: enforce ;text; (no spaces) and add ;;text; to remove entire line; tests added.
2025-08-16feat(logging): add LLM stats (averages and per-minute)v0.0.2Paul Buetow
2025-08-16feat(logging): add LLM stats averages and per-minute metricsPaul Buetow
2025-08-16feat(llm): add Ollama provider + provider selection and CLI override; update ↵v0.0.1Paul Buetow
README and logs
2025-08-16lsp/completion: strip inline ;...; prompt markers via AdditionalTextEdits; ↵Paul Buetow
update tests
2025-08-16revert: remove newline-after-colon insertion behavior and its testsPaul Buetow
2025-08-16logging: migrate LSP logs to global singleton (internal/logging); use ↵Paul Buetow
consistent colors/prefix; refactor LLM provider to use global logger and remove per-client loggers
2025-08-16context: log when full-file/window context is skipped because document is ↵Paul Buetow
not open; add -no-disk-io flag with HEXAI_NO_DISK_IO env; plumb through server
2025-08-16lsp: split monolithic server.go into modules; add configurable max tokens ↵Paul Buetow
and context strategies (minimal|window|file-on-new-func|always-full); provide flags/env fallbacks; add unit tests for helpers and context; update README; remove obsolete files
2025-08-16llm: add pluggable provider with OpenAI default; extensive logging; LSP ↵Paul Buetow
completion integration with TextEdit, param-aware prompts; remove idle gating; label/filter improvements; docs update
2025-08-14Revert "feat(lsp): gate completion by context — require preceding space ↵Paul Buetow
and >=2s idle since last change; add logging for gating decisions" This reverts commit eb0bb96fd23cae6e92c5f8d77ef29db8b6d50dc1.
2025-08-14feat(lsp): gate completion by context — require preceding space and >=2s ↵Paul Buetow
idle since last change; add logging for gating decisions
2025-08-14feat(lsp): scaffold barebones LSP server with contextual completion; add ↵Paul Buetow
Taskfile and AGENTS.md; enable -log context logging