Skip to content

LSP: Support organizeImports #30840

@akimon658

Description

@akimon658

I'm proposing the addition of the organizeImports feature to the Deno Language Server.

A similar request was made in issue #14173. When it was opened, the Deno VS Code extension was conflicting with the editor's built-in "Organize Imports" command (denoland/vscode_deno#644). This conflict was later resolved in denoland/vscode_deno#645, which allowed the native VS Code feature to function again for Deno projects.

After that fix in the VS Code extension, issue #14173 was closed with the comment "seems to be working."

However, the solution was to unblock a VS Code feature, not to implement organizeImports within the Deno LSP itself. As a result, this functionality remains unavailable to users on any editor other than VS Code that relies solely on the LSP.

To provide a consistent experience for all users, this feature should be implemented directly in the Deno LSP. Since tsserver already provides this capability and is used internally, the implementation should be straightforward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions