diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-02 14:05:16 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-02 14:05:16 +0200 |
| commit | 8fa31daeba7a6617f08027a5f9f68bb612587772 (patch) | |
| tree | 25979d0c922eff767ef33e14091d66bb8fcee20a /internal/lsp/handlers_init.go | |
| parent | 4649658bd71c4754dc5dde2fb5e1f4de2fe269d4 (diff) | |
lsp: cancel handler contexts on shutdown via server context (task 423)
Diffstat (limited to 'internal/lsp/handlers_init.go')
| -rw-r--r-- | internal/lsp/handlers_init.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/lsp/handlers_init.go b/internal/lsp/handlers_init.go index 702871d..0cecc6c 100644 --- a/internal/lsp/handlers_init.go +++ b/internal/lsp/handlers_init.go @@ -36,9 +36,11 @@ func (s *Server) handleInitialized() { } func (s *Server) handleShutdown(req Request) { + s.cancelRequests() s.reply(req.ID, nil, nil) } func (s *Server) handleExit() { + s.cancelRequests() s.exited.Store(true) } |
