Skip to content

Formatting ignoring the code-formatter.xml file #236

@abique

Description

@abique

Relevance Confirmation

  • I confirmed that this is not an issue with the Eclipse JDT Language Server itself

What happened?

                     "format": {
                        "enabled": true,
                        "settings": {
                           "url": "file://$ZED_WORKTREE_ROOT/code-formatting.xml",
                        },
                        "onType": { "enabled": false },
                     },

Is not honored at all.

I also have:

      "Java": {
         "auto_indent_on_paste": false,
         "format_on_save": "off",
         "tab_size": 3,
         "formatter": "language_server",
      },

What did you expect to happen?

I expect zed to format using jdtls which itself should use code-formatting.xml.

Environment

Zed: 1.0.1
Platform: Archlinux
Java: 26.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-serverRelated to the language server.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions