Skip to content

fix(editor): Remove overrides from default config - #2357

Open
pweyck wants to merge 1 commit into
voidzero-dev:mainfrom
pweyck:fix/editor-overrides-in-default-config
Open

fix(editor): Remove overrides from default config#2357
pweyck wants to merge 1 commit into
voidzero-dev:mainfrom
pweyck:fix/editor-overrides-in-default-config

Conversation

@pweyck

@pweyck pweyck commented Aug 6, 2026

Copy link
Copy Markdown

Do not set the options in the .zed/settings.json, to prevent a mismatch between vp lint and the language server.

These options are also not set in the vscode settings.

Do not set the options in the settings.json, to prevent a mismatch
between vp lint and the lsp.

These options are also not set in the vscode settings.
@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 8580dc7
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a74340022332c0008c1811a
😎 Deploy Preview https://deploy-preview-2357--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@fengmk2

fengmk2 commented Aug 6, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8580dc70a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 48 to 49
fixKind: 'safe_fix',
typeAware: true,
unusedDisableDirectives: 'deny',
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep Zed type-aware for generated lint configs

For projects produced by the normal vp create/vp migrate path without a baseUrl, injectLintTypeCheckDefaults explicitly enables lint.options.typeAware, but the Oxlint language server does not consume the Vite+ lint block and now receives no corresponding typeAware initialization option. Consequently, Zed stops reporting the type-aware rules that vp lint runs, merely reversing the mismatch this change intends to prevent; the editor settings need to reflect the resolved project lint option rather than unconditionally dropping it.

Useful? React with 👍 / 👎.

Comment on lines 48 to 49
fixKind: 'safe_fix',
typeAware: true,
unusedDisableDirectives: 'deny',
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove legacy overrides from existing Zed settings

When a project already has the .zed/settings.json written by an earlier Vite+ version, rerunning vp migrate --editor zed cannot apply this fix: writeEditorConfigs merges only missing keys and explicitly preserves every existing value, so the old typeAware: true and unusedDisableDirectives: "deny" entries remain indefinitely. Existing Zed users therefore retain the exact CLI/LSP mismatch this commit is intended to eliminate; the migration path needs targeted handling for these legacy generated values.

Useful? React with 👍 / 👎.

Comment on lines 48 to 49
fixKind: 'safe_fix',
typeAware: true,
unusedDisableDirectives: 'deny',
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the documented Zed initialization settings

When users follow the manual Zed setup instead of generating the file, docs/guide/ide-integration.md lines 66-67 still instruct them to set both typeAware: true and unusedDisableDirectives: "deny". That path therefore recreates the exact CLI/language-server mismatch this removal is intended to prevent, so the documented configuration needs to be updated together with the generated defaults.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants