From e9c536d5b50c0bc7b9d284cff578a40f971ff20a Mon Sep 17 00:00:00 2001 From: "Michael K." <130953568+kmichaelk@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:42:08 +0300 Subject: [PATCH] Fixed incorrect config key used to check if diagnostics are enabled (#759) --- internal/lsp/configuration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsp/configuration.go b/internal/lsp/configuration.go index 31e6e14a..d2f50f02 100644 --- a/internal/lsp/configuration.go +++ b/internal/lsp/configuration.go @@ -75,7 +75,7 @@ func (s *Server) didChangeConfiguration(ctx context.Context, _ *protocol.DidChan confRes = false } - if s.serverConfig.SemantikTokensEnabled != confRes { + if s.serverConfig.DiagnosticsEnabled != confRes { s.serverConfig.DiagnosticsEnabled = confRes // NOTE: dynamic registration of diagnostics is only available from lsp 3.17 on }