Skip to content

Formatter deletes ALL imports #369

Open

Description

@aaxper

I'm using NixOS with Helix. Running :fmt (format) changes literally nothing except it deletes every single import line. All other LSP features work as expected and the code has no errors. This happens in all projects and all files.

Activity

  1. aaxper commented on Oct 14, 2026

    @aaxper
    Author

    This appears to be because all imports are deleted and then certain ones are reinserted afterwards, meaning that it produces overlapping text edits that some editors reject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions