Skip to content

Conversation

Sysix
Copy link
Member

@Sysix Sysix commented Oct 15, 2025

Now, the VSCode editor supports oxc.fmt.configPath to communicate with the server.
Other Editors could use it already, waited for the "watch" feature to implement it in VSCode :)

@github-actions github-actions bot added A-editor Area - Editor and Language Server C-enhancement Category - New feature or request labels Oct 15, 2025
Copy link
Member Author

Sysix commented Oct 15, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Sysix Sysix force-pushed the 10-11-feat_language_server_watch_for_fmt.configpath_file_content_change branch from 049aef7 to be35392 Compare October 15, 2025 20:10
@Sysix Sysix force-pushed the 10-15-feat_editor_support_oxc.fmt.configpath_configuration branch from bbcabc2 to d0aba11 Compare October 15, 2025 20:10
@Sysix Sysix force-pushed the 10-11-feat_language_server_watch_for_fmt.configpath_file_content_change branch from be35392 to 9a2df8d Compare October 15, 2025 21:36
@Sysix Sysix force-pushed the 10-15-feat_editor_support_oxc.fmt.configpath_configuration branch from d0aba11 to 4995f5c Compare October 15, 2025 21:36
@Sysix Sysix requested a review from Copilot October 15, 2025 22:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for the oxc.fmt.configPath configuration option, allowing users to specify a custom path to an oxfmt configuration file for formatting operations. When set to null, the formatter defaults to using .oxfmtrc.json at the workspace root.

Key changes:

  • Added oxc.fmt.configPath configuration option to VS Code extension settings
  • Implemented configuration handling in WorkspaceConfig class with getter/setter methods
  • Added E2E test demonstrating formatting with a custom config file path

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
editors/vscode/package.json Adds oxc.fmt.configPath configuration schema with string or null type
editors/vscode/client/WorkspaceConfig.ts Implements config path property, getter/setter methods, and language server serialization
editors/vscode/tests/WorkspaceConfig.spec.ts Adds test coverage for the new config path property
editors/vscode/tests/e2e_server.spec.ts Adds E2E test and teardown for formatting with custom config path
editors/vscode/README.md Documents the new configuration option
editors/vscode/fixtures/formatting_with_config/formatting.ts Test fixture file for formatting test
editors/vscode/fixtures/formatting_with_config/formatter.json Test config file with semicolons setting

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Sysix Sysix force-pushed the 10-11-feat_language_server_watch_for_fmt.configpath_file_content_change branch from 9a2df8d to 426f7e5 Compare October 16, 2025 18:30
@Sysix Sysix force-pushed the 10-15-feat_editor_support_oxc.fmt.configpath_configuration branch 2 times, most recently from 55fd06f to b4880dc Compare October 16, 2025 19:57
@Sysix Sysix marked this pull request as ready for review October 16, 2025 20:01
@Sysix Sysix requested a review from camc314 as a code owner October 16, 2025 20:01
@Sysix Sysix force-pushed the 10-15-feat_editor_support_oxc.fmt.configpath_configuration branch from b4880dc to 65faf92 Compare October 16, 2025 20:04
@graphite-app graphite-app bot changed the base branch from 10-11-feat_language_server_watch_for_fmt.configpath_file_content_change to graphite-base/14639 October 17, 2025 10:59
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Oct 17, 2025
Copy link
Contributor

camc314 commented Oct 17, 2025

Merge activity

@camc314 camc314 self-assigned this Oct 17, 2025
@graphite-app graphite-app bot changed the base branch from graphite-base/14639 to main October 17, 2025 11:05
Now, the VSCode editor supports `oxc.fmt.configPath` to communicate with the server.
Other Editors could use it already, waited for the "watch" feature to implement it in VSCode :)
@graphite-app graphite-app bot force-pushed the 10-15-feat_editor_support_oxc.fmt.configpath_configuration branch from 65faf92 to 8b322d4 Compare October 17, 2025 11:05
@graphite-app graphite-app bot merged commit 8b322d4 into main Oct 17, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 10-15-feat_editor_support_oxc.fmt.configpath_configuration branch October 17, 2025 11:09
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-editor Area - Editor and Language Server C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants