From ffe9ed5531b6e62706ea555c48964ea0e560b780 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 3 Sep 2025 16:00:26 +0300 Subject: Phase 2: add configurable completion debounce\n\n- App config: completion_debounce_ms (default 200)\n- Server: wait until no input for debounce before LLM calls\n- Applies to chat and provider-native completion paths\n- Tests: add debounce and adjust to verify behavior\n\nAll unit tests pass. --- internal/hexailsp/run.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/hexailsp') diff --git a/internal/hexailsp/run.go b/internal/hexailsp/run.go index 1ff1ded..0df8256 100644 --- a/internal/hexailsp/run.go +++ b/internal/hexailsp/run.go @@ -116,5 +116,7 @@ func makeServerOptions(cfg appconfig.App, logContext bool, client llm.Client) ls Client: client, TriggerCharacters: cfg.TriggerCharacters, ManualInvokeMinPrefix: cfg.ManualInvokeMinPrefix, + CompletionDebounceMs: cfg.CompletionDebounceMs, + CompletionThrottleMs: cfg.CompletionThrottleMs, } } -- cgit v1.2.3