You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
If formatting is provided through PSI, then LSP's formatting cannot be invoked. #388
see my another plugin, This plugin operates as a plugin for the IntelliJ-EmmyLua plugin. It is based on the formatter registered through the external tool, and IntelliJ will select it as the highest priority formatter.
Activity
angelozerr commentedon Jun 26, 2024
Indeed I did this choice because I was fear to break something if an IJ plugin provide a formatter.
My feeling was if IJ plugin provides a formatter it means that formatter is better than the language server.
I dont know if it is possible to choose a formatter if there are several formatter for a given file.
Do you know that @CppCXY ?
CppCXY commentedon Jun 26, 2024
see my another plugin, This plugin operates as a plugin for the IntelliJ-EmmyLua plugin. It is based on the formatter registered through the external tool, and IntelliJ will select it as the highest priority formatter.
fbricon commentedon Jun 26, 2024
Seems like Jetbrains LSP API allows servers to override the IDE-provided formatting: https://github.com/vitallium/intellij-plugin-ruby-lsp/blob/c133940a5b91034076aa90771f46b026db997028/src/main/kotlin/com/github/vitallium/rubylsp/RubyLspServerDescriptor.kt#L45
angelozerr commentedon Oct 2, 2024
It will covered in 0.7.0 with the current PR #543
angelozerr commentedon Oct 3, 2024
@CppCXY @FalsePattern @themartdev please try installing nightly-builds, read doc at https://github.com/redhat-developer/lsp4ij/blob/main/docs/LSPApi.md#lsp-formatting-feature
For more information ,see #561