summaryrefslogtreecommitdiff
path: root/internal/lsp/server.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-22 23:39:56 +0300
committerPaul Buetow <paul@buetow.org>2025-08-22 23:39:56 +0300
commitd7c52fc31e233e97d80a5340cf2a1c451ae465af (patch)
tree47a16613b5a088103ecd299bdee6a0912ba95919 /internal/lsp/server.go
parentc97687cb8a2f7ab578291e707bf6c920c346a8cb (diff)
remove busy check
Diffstat (limited to 'internal/lsp/server.go')
-rw-r--r--internal/lsp/server.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/lsp/server.go b/internal/lsp/server.go
index ea13456..7bc52c1 100644
--- a/internal/lsp/server.go
+++ b/internal/lsp/server.go
@@ -31,8 +31,6 @@ type Server struct {
triggerChars []string
// If set, used as the LSP coding temperature for all LLM calls
codingTemperature *float64
- // Concurrency guard: prevent overlapping LLM requests (esp. completions)
- llmBusy bool
// LLM request stats
llmReqTotal int64
llmSentBytesTotal int64
@@ -99,25 +97,6 @@ func NewServer(r io.Reader, w io.Writer, logger *log.Logger, opts ServerOptions)
return s
}
-// tryStartLLM attempts to mark the LLM as busy. Returns true when it acquired
-// the guard; false if another LLM request is already running.
-func (s *Server) tryStartLLM() bool {
- s.mu.Lock()
- defer s.mu.Unlock()
- if s.llmBusy {
- return false
- }
- s.llmBusy = true
- return true
-}
-
-// endLLM releases the busy guard for LLM requests.
-func (s *Server) endLLM() {
- s.mu.Lock()
- s.llmBusy = false
- s.mu.Unlock()
-}
-
func (s *Server) Run() error {
for {
body, err := s.readMessage()