Skip to content

Commit

Permalink
Fixed incorrect config key used to check if diagnostics are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kmichaelk committed Sep 12, 2024
1 parent 90d2d70 commit 19b6674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lsp/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 19b6674

Please sign in to comment.