Skip to content

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Oct 27, 2025

grafik

Now the configuration oxc.flags is deprecated on the editor side too.
It still sends the flags configuration to the language server, because it does not know which version is used. (defined with oxc.path.server).
Updated all test + included a deprecated flag test.

@github-actions github-actions bot added the A-editor Area - Editor and Language Server label Oct 27, 2025
Copy link
Member Author

Sysix commented Oct 27, 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 the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Oct 27, 2025
@Sysix Sysix force-pushed the 10-27-refactor_editor_flatten_flags_options branch 5 times, most recently from 54f7014 to d2122c0 Compare October 28, 2025 18:56
@Sysix Sysix requested a review from Copilot October 28, 2025 19:02
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 migrates the VSCode extension from using a generic flags object to dedicated, type-safe configuration properties for fixKind and disableNestedConfig. The deprecated flags configuration is maintained for backward compatibility.

Key changes:

  • Introduced new oxc.fixKind and oxc.disableNestedConfig configuration properties with proper typing
  • Deprecated the oxc.flags configuration object in favor of explicit properties
  • Updated all tests to use the new configuration API

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
editors/vscode/package.json Added new fixKind and disableNestedConfig configuration properties with enums and marked flags as deprecated
editors/vscode/client/WorkspaceConfig.ts Implemented FixKind enum, added properties and methods for new config options with backward compatibility support
editors/vscode/tests/WorkspaceConfig.spec.ts Updated tests to use new typed configuration properties instead of flags object
editors/vscode/tests/e2e_server.spec.ts Updated test to use fixKind property instead of flags.fix_kind
editors/vscode/tests/code_actions.spec.ts Updated test to use fixKind property instead of flags.fix_kind
editors/vscode/README.md Updated documentation to document new fixKind and disableNestedConfig properties and marked flags section as deprecated

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Sysix Sysix force-pushed the 10-27-refactor_editor_flatten_flags_options branch from d2122c0 to 4f43808 Compare October 28, 2025 19:24
@Sysix Sysix force-pushed the 10-27-refactor_editor_flatten_flags_options branch from 4f43808 to 2ce3137 Compare October 28, 2025 19:26
strictEqual(config.configPath, null);
});

test('configPath defaults to .oxlintrc.json when not using nested configs and configPath is empty', async () => {
Copy link
Member Author

@Sysix Sysix Oct 28, 2025

Choose a reason for hiding this comment

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

These 2 test should be implementation details on the server.
They area already LintOptions::use_nested_config() tests, so we can safely delete them

@Sysix Sysix marked this pull request as ready for review October 28, 2025 20:02
@Sysix Sysix requested a review from camc314 as a code owner October 28, 2025 20:02
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-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants