summaryrefslogtreecommitdiff
path: root/internal/lsp/handlers_init.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/handlers_init.go')
-rw-r--r--internal/lsp/handlers_init.go2
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)
}