redhat-developer / lsp4ij

LSP Client for IntelliJ
Eclipse Public License 2.0
48 stars 9 forks source link

fix: actions not getting enabled on 2024.2 #372

Closed FalsePattern closed 1 week ago

FalsePattern commented 1 week ago

AnActionEvent.getData(CommonDataKeys.VIRTUAL_FILE) is a lazily computed value, which are forbidden to be retrieved on the EDT since 2024.2 (implicitly returning a null VirtualFile, and logging a stacktrace).

This caused the Go To -> LSP * actions to stay perpetually disabled.

Fixes #371

angelozerr commented 1 week ago

Just in time before the 0.0.2 release. Thanks @FalsePattern !