Skip to content

If formatting is provided through PSI, then LSP's formatting cannot be invoked. #388

Closed

Description

@CppCXY

If intellij-emmylua is installed and sumneko lua is configured through LSP4IJ, then LSP4IJ will not send formatting requests.

Activity

  1. angelozerr commented on Jun 26, 2024

    @angelozerr
    Contributor

    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 ?

  2. CppCXY commented on Jun 26, 2024

    @CppCXY
    ContributorAuthor

    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.

  3. added
    enhancement
    on Jul 2, 2024
  4. angelozerr commented on Oct 2, 2024

    @angelozerr
    Contributor

    It will covered in 0.7.0 with the current PR #543

  5. self-assigned this
    on Oct 8, 2024
  6. added this to the 0.7.0 milestone on Oct 8, 2024
  7. moved this to ✅ Done in IDE Cloudaptorson Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions