Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guide/ide-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ You can also manually set up the Zed config:
"oxfmt": {
"initialization_options": {
"settings": {
"configPath": "./vite.config.ts",
"fmt.configPath": "./vite.config.ts",
"run": "onSave"
}
}
Expand All @@ -98,4 +98,4 @@ You can also manually set up the Zed config:
}
```

Setting `oxfmt.configPath` to `./vite.config.ts` keeps editor format-on-save aligned with the `fmt` block in your Vite+ config. The full generated config covers additional languages (CSS, HTML, JSON, Markdown, etc.) — run `vp create` or `vp migrate` to get the complete file written automatically.
Setting `oxfmt.fmt.configPath` to `./vite.config.ts` keeps editor format-on-save aligned with the `fmt` block in your Vite+ config. The full generated config covers additional languages (CSS, HTML, JSON, Markdown, etc.) — run `vp create` or `vp migrate` to get the complete file written automatically.
4 changes: 2 additions & 2 deletions packages/cli/src/utils/__tests__/editor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,14 @@ describe('writeEditorConfigs', () => {
oxfmt?: {
initialization_options?: {
settings?: {
configPath?: string;
'fmt.configPath'?: string;
};
};
};
};
};

expect(settings.lsp?.oxfmt?.initialization_options?.settings?.configPath).toBe(
expect(settings.lsp?.oxfmt?.initialization_options?.settings?.['fmt.configPath']).toBe(
'./vite.config.ts',
);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ZED_SETTINGS = {
oxfmt: {
initialization_options: {
settings: {
configPath: './vite.config.ts',
'fmt.configPath': './vite.config.ts',
run: 'onSave',
},
},
Expand Down
Loading