LSP diagnostics change in 2025.1

In the 2025.1 a new capability has been added - "diagnostic":{"dynamicRegistration":true}} which broke the LSP errors, because this capability turns off the legacy publishDiagnostics in the LSP server I use.

I don’t see any textDocument/diagnostic request from IDEA though.

  1. Is there any way to fully configure the diagnostic, so that textDocument/diagnostic are send?
  2. Is there a place where changes to LSP are reflected. (I spent some time wondering why the errors stopped showing :cry: )

The quick fix would be to manually drop the "diagnostic":{"dynamicRegistration":true}} from capabilities

See the comments at IJPL-172853, which is the ticket for textDocument/diagnostic support.

As for a way to keep track of the changes, you can create a YouTrack filter that searches for LSP-API-related tickets:

  • Input the query of your choice (all LSP API tickets should be matched by #{Core. LSP})
  • Click Save as new search
  • Modify the Subscriptions section to your liking (personally, I pick Issue created and Issue resolved)

YouTrack will then send emails to notify you of the changes.

1 Like