Skip to content

Support editor setting for Zed #826

Closed

Description

@xingwangzhe

Description

Image

Zed is probably now the most popular code editor after VSCode。

Suggested solution

.zed/settings.json

Alternative

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Activity

  1. changed the title [-]Support editor setting for **zed** (`.zed/`)[/-] [+]Support editor setting for **zed** (`.zed/`)[/+] on Mar 13, 2026
  2. changed the title [-]Support editor setting for **zed** (`.zed/`)[/-] [+]Support editor setting for Zed[/+] on Mar 13, 2026
  3. shinebayar-g commented on Mar 27, 2026

    @shinebayar-g

    Can we re-open this since vite.config.ts settings and vite-plus dependency still doesn't work in Zed.

  4. alexanderzinolidis commented on Apr 1, 2026

    @alexanderzinolidis

    @shinebayar-g For me everything is working if I change "configPath": "./.oxlintrc.json" to "configPath": "./vite.config.ts" in settings.json

  5. shinebayar-g commented on Apr 1, 2026

    @shinebayar-g

    @alexanderzinolidis oxc-zed v0.4.5 was released yesterday which includes oxc-project/oxc-zed#141 which should have fixed this issue. I haven't had a time to check it yet, but you're probably using the new version.

    Update: vite-plus is now working with the oxc-zed extension.

  6. silvenon commented on Apr 11, 2026

    @silvenon

    Indeed, v0.4.6 fixed it! Initially it wasn't working for me so I thought it was still broken, but running vp lint revealed that the Vite Plus was failing to resolve vite.config.ts itself because for some reason I have to specify extensions for local modules.

    I'd prefer Oxc LSP to fail if the specified configFile failed to resolve, so that I know when it stopped working, but I assume this is a fallback feature.

  7. patspam commented on Apr 20, 2026

    @patspam

    Would be nice if the instructions said that you need to install the oxc-zed extension to get it to work properly

  8. self-assigned this
    on Apr 22, 2026
  9. naokihaba commented on Apr 22, 2026

    @naokihaba
    Collaborator

    @fengmk2
    The underlying technical issue has already been resolved in oxc-zed v0.4.6, and vp create/vp migrate now automatically generates .zed/settings.json as of #832. What's still missing is documentation on the IDE Integration page covering the Zed setup — including installing the oxc-zed extension and the manual config using configPath: "./vite.config.ts". I'd like to open a PR for that.

  10. shinebayar-g commented on Apr 22, 2026

    @shinebayar-g

    @naokihaba fyi #832 generates different config than the example mentioned in the zed oxc extension repository https://github.com/oxc-project/oxc-zed/blob/main/examples/both/.zed/settings.json

    not sure which one is correct. For example setting configPath: null as shown in the example vs configPath: './vite.config.ts' made no difference. It would be nice if the examples and docs were consistent in this regard.

  11. silvenon commented on Apr 22, 2026

    @silvenon

    For example setting configPath: null as shown in the example vs configPath: './vite.config.ts' made no difference.

    It's because null is probably the default value, meaning that it searches for default configs, starting with .oxlintrc.json, oxlint.config.ts, then vite.config.ts (last one newly added).

    The example configs include a lot of extra stuff which is already true by default, like run: 'onType' (I believe) for oxlint and 'onSave' for oxfmt.

    Looking at the LSP documentation it's a bit unclear how exactly these configs are supposed to be, for example it documents fmt.configFile, while I think under oxfmt it's enough to only say configFile… to my knowledge there's no direct reference.

  12. shinebayar-g commented on Apr 22, 2026

    @shinebayar-g

    example it documents fmt.configFile

    Yes that's another confusing one.

  13. naokihaba commented on Apr 23, 2026

    @naokihaba
    Collaborator

    @shinebayar-g @silvenon

    Thanks for looking into this!

    You're right — there are differences between what #832 generates and the oxc-zed example config.
    That said, the example simply makes the default values explicit (e.g. configPath: null),

    https://github.com/oxc-project/oxc/tree/main/crates/oxc_language_server

    so I don't think this is a critical mismatch. If it turns out to be confusing,
    it might be worth discussing over on the oxc-zed repository or in oxc_language_server.

    The goal of this issue is to make sure Zed users can get started with Vite+ without confusion.
    Auto-generation is already covered by #832, and the remaining task is documentation.
    I'd like to keep this issue focused on Zed support and avoid letting the scope grow too wide.

  14. fengmk2 commented on Apr 23, 2026

    @fengmk2
    Member

    @naokihaba By the way, here's a future idea: once we have the oxlint plugin #1408, we can use it to automatically fix these misconfiguration issues.

  15. naokihaba commented on Apr 23, 2026

    @naokihaba
    Collaborator

    @naokihaba By the way, here's a future idea: once we have the oxlint plugin #1408, we can use it to automatically fix these misconfiguration issues.

    That's a great idea! An oxlint plugin that validates the Zed config would be a nice
    addition down the line.

  16. naokihaba commented on Apr 23, 2026

    @naokihaba
    Collaborator

    @naokihaba By the way, here's a future idea: once we have the oxlint plugin #1408, we can use it to automatically fix these misconfiguration issues.

    That's a great idea! An oxlint plugin that validates the Zed config would be a nice addition down the line.

    I've opened #1456 to capture the idea.

  17. added a commit that references this issue on Apr 24, 2026
    7cf6d8d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions