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 authored Sep 19, 2024
1 parent 2ed94ee commit e9c536d
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 e9c536d

Please sign in to comment.