Skip to content

Unified language identifiers handling #59

Open

Description

@kunlinglio

Follow-up to #58.

Two parallel language lists have to stay in sync: extensions/zed/extension.toml and Language in src/document/language.rs. That's pretty fragile to maintain.

Moreover, the language id is not well-defined by LSP, so it's all depends on the implementations(editors). For example: Zed sends language_id = name.to_lowercase() although VS Code sends its own language ids. Currently, enum Language was written mostly against the VS Code id, so it can't be correct for both editors at once.

Some reference:

Activity

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