Skip to content

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Oct 21, 2025

The same as the CLI is now doing it: #14848

Copy link
Member Author

Sysix commented Oct 21, 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.

@github-actions github-actions bot added A-editor Area - Editor and Language Server C-enhancement Category - New feature or request labels Oct 21, 2025
@Sysix Sysix requested a review from Copilot October 21, 2025 19:38
Copy link
Contributor

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 updates the language server's config file handling to search for both .oxfmtrc.json and .oxfmtrc.jsonc files, matching the behavior implemented in the CLI.

Key Changes

  • Changed FORMAT_CONFIG_FILE constant from a single string to FORMAT_CONFIG_FILES array containing both .json and .jsonc extensions
  • Refactored file search logic to check multiple config file patterns
  • Updated file watcher registration to monitor both config file types

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
crates/oxc_language_server/src/main.rs Changed format config constant from single string to array of file extensions
crates/oxc_language_server/src/formatter/server_formatter.rs Refactored config file search logic and updated watcher pattern methods to handle multiple file types
crates/oxc_language_server/src/worker.rs Updated file watcher registration code to iterate over multiple patterns and updated tests to verify both file types

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

@Sysix Sysix force-pushed the 10-21-feat_language_server_search_both_.json_and_.jsonc_config_file branch from 1c8cb9e to cf009a3 Compare October 21, 2025 19:41
@Sysix Sysix marked this pull request as ready for review October 21, 2025 19:43
@Sysix Sysix requested a review from camc314 as a code owner October 21, 2025 19:43
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Oct 22, 2025
Copy link
Contributor

camc314 commented Oct 22, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 10-21-feat_language_server_search_both_.json_and_.jsonc_config_file branch from cf009a3 to e3d65c3 Compare October 22, 2025 09:04
@graphite-app graphite-app bot merged commit e3d65c3 into main Oct 22, 2025
21 checks passed
@graphite-app graphite-app bot deleted the 10-21-feat_language_server_search_both_.json_and_.jsonc_config_file branch October 22, 2025 09:08
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Oct 22, 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.

3 participants