Skip to content

Implement import sorting #30

@jpike88

Description

@jpike88

I made this as a discussion in Zed itself, but in the meantime we may be able to intercept the response from tsgo in this plugin and sort the response before it the response is sent back to the core IDE.

Due to:

microsoft/TypeScript#51155

microsoft/typescript-go#1709

The TypeScript team believes that import suggestion sorting isn't important enough to include in their own LSP. As the newer tsgo will not have plugin support for the foreseeable future (possibly years away), it would be good to try and solve this problem in the meantime.

Being able to prioritise/deprioritise the order of certain import paths based on a regex condition is all that's needed.

Primary benefit of including this in Zed itself, is that the Zed team can generalize this functionality to any language.

536040082-3ef3ec8d-e2dc-4b66-861e-dfa811ddc49b

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