Skip to content

Conversation

@OlegOAndreev
Copy link
Contributor

@OlegOAndreev OlegOAndreev commented Jun 19, 2025

Related GitHub Issue

Closes: #1747

Description

Added configuration for disabling Roo Code quick fixes. The configuration uses standard VSCode configuration.

Test Procedure

Disable the setting, check that quick fixes "Add to Roo Code" and others no longer appear.

Type of Change

  • 🐛 Bug Fix: Non-breaking change that fixes an issue.
  • New Feature: Non-breaking change that adds functionality.
  • 💥 Breaking Change: Fix or feature that would cause existing functionality to not work as expected.
  • ♻️ Refactor: Code change that neither fixes a bug nor adds a feature.
  • 💅 Style: Changes that do not affect the meaning of the code (white-space, formatting, etc.).
  • 📚 Documentation: Updates to documentation files.
  • ⚙️ Build/CI: Changes to the build process or CI configuration.
  • 🧹 Chore: Other changes that don't modify src or test files.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Code Quality:
    • My code adheres to the project's style guidelines.
    • There are no new linting errors or warnings (npm run lint).
    • All debug code (e.g., console.log) has been removed.
  • Testing:
    • New and/or updated tests have been added to cover my changes.
    • All tests pass locally (npm test).
    • The application builds successfully with my changes.
  • Branch Hygiene: My branch is up-to-date (rebased) with the main branch.
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Changeset: A changeset has been created using npm run changeset if this PR includes user-facing changes or dependency updates.
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

Documentation Updates

Additional Notes

Get in Touch


Important

Added enableCodeActions setting to toggle Roo Code quick fixes, with updates to CodeActionProvider.ts and localization files.

  • Behavior:
    • Added enableCodeActions setting in package.json to toggle Roo Code quick fixes.
    • provideCodeActions() in CodeActionProvider.ts checks enableCodeActions setting to determine if quick fixes should be provided.
  • Localization:
    • Updated package.nls.*.json files to include settings.enableCodeActions.description in multiple languages.

This description was created by Ellipsis for 5474bfb. You can customize this summary. It will automatically update as commits are pushed.

@OlegOAndreev OlegOAndreev requested review from cte, jr and mrubens as code owners June 19, 2025 12:56
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Jun 19, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jun 19, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Jun 19, 2025
@hannesrudolph hannesrudolph added PR - Needs Preliminary Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Jun 19, 2025
@daniel-lxs
Copy link
Member

Hey @OlegOAndreev, thanks for the PR!

I noticed a few inconsistencies with the translations. Several language files (Spanish, Indonesian, Japanese, Korean, Russian, Vietnamese, and Traditional Chinese) are missing trailing periods in the new enableCodeActions description, while other descriptions in those same files do end with periods.

Also, just a heads-up that the addition of this setting might cause existing unit tests to fail, since they expect code actions to always be provided. You might want to add a test case in CodeActionProvider.spec.ts to cover the behavior when enableCodeActions is set to false.

The implementation looks solid overall. Nice work on addressing the issue!

@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Changes Requested] in Roo Code Roadmap Jun 20, 2025
@hannesrudolph
Copy link
Collaborator

@daniel-lxs ran pr-fixer on this

@daniel-lxs daniel-lxs moved this from PR [Changes Requested] to PR [Needs Prelim Review] in Roo Code Roadmap Jun 23, 2025
- Add missing period to French translation for consistency
- Add test case for disabled enableCodeActions setting
- Fix existing test mock setup for proper configuration handling
Copy link
Member

@daniel-lxs daniel-lxs left a comment

Choose a reason for hiding this comment

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

Thanks @OlegOAndreev and @hannesrudolph! This looks good!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 23, 2025
@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Needs Review] in Roo Code Roadmap Jun 23, 2025
@mrubens mrubens merged commit 82f7e88 into RooCodeInc:main Jun 23, 2025
16 checks passed
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Jun 23, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jun 23, 2025
cte pushed a commit that referenced this pull request Jun 24, 2025
)

* Added Enable Roo Code quick fixes setting to disable quick fixes.

* Fix: Address PR review comments and failing tests for #4878

* Fix localization consistency and add test coverage

- Add missing period to French translation for consistency
- Add test case for disabled enableCodeActions setting
- Fix existing test mock setup for proper configuration handling

---------

Co-authored-by: hannesrudolph <[email protected]>
Co-authored-by: RooCode <[email protected]>
Alorse pushed a commit to Alorse/Roo-Code that referenced this pull request Jun 27, 2025
…oCodeInc#4878)

* Added Enable Roo Code quick fixes setting to disable quick fixes.

* Fix: Address PR review comments and failing tests for RooCodeInc#4878

* Fix localization consistency and add test coverage

- Add missing period to French translation for consistency
- Add test case for disabled enableCodeActions setting
- Fix existing test mock setup for proper configuration handling

---------

Co-authored-by: hannesrudolph <[email protected]>
Co-authored-by: RooCode <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer PR - Needs Review size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Can't disable Code Actions

4 participants