From 19b667499191222dc104b9ca5b9c112ff90d629c Mon Sep 17 00:00:00 2001 From: kmichaelk <130953568+kmichaelk@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:51:33 +0300 Subject: [PATCH] Fixed incorrect config key used to check if diagnostics are enabled --- 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 }