Roo-Code/src/__mocks__
Steven T. Cramer 8ad4fff0d2
Removed hardcoded filenames to GlobalFileNames constants. (#1904)
* Replace hardcoded custom modes filename with GlobalFileNames constant

* Remove 'cline' prefix from mcpSettings filename

* Use GlobalFileNames.customModes in modes.ts

* replace two more `cline_mcp_settings` with `mcp_settings` in tests.

* feat: add settings file migration for new file naming convention

- Implement migrateSettings function to rename legacy settings files to new format
- Migrate cline_custom_modes.json to new custom modes filename
- Migrate cline_mcp_settings.json to new MCP settings filename
- Add TODO to remove migration code in September 2025 (6 months after implementation)
- Make activate function async to support migration on startup

* Add associated changeset

* removed unused import

* refactor: move migrateSettings to dedicated utility file

- Extract migrateSettings function from extension.ts to src/utils/migrateSettings.ts
- Update extension.ts to import and use the extracted function
- Update tests to use the real implementation
- Improve dependency injection by passing outputChannel as parameter
- Enhance maintainability by isolating temporary migration code (to be removed Sept 2025)

* Update src/extension.ts

---------

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-03-24 13:32:44 -04:00
..
@modelcontextprotocol/sdk fix ut 2025-03-17 14:41:18 +08:00
fs Removed hardcoded filenames to GlobalFileNames constants. (#1904) 2025-03-24 13:32:44 -04:00
default-shell.js Prettier backfill 2025-01-17 14:11:28 -05:00
delay.js Prettier backfill 2025-01-17 14:11:28 -05:00
get-folder-size.js Fix some test warnings 2025-02-14 09:10:38 -05:00
globby.js Prettier backfill 2025-01-17 14:11:28 -05:00
jest.setup.ts Allow users to set custom system prompts 2025-02-27 15:03:26 -05:00
McpHub.ts Prettier backfill 2025-01-17 14:11:28 -05:00
os-name.js Prettier backfill 2025-01-17 14:11:28 -05:00
p-wait-for.js Prettier backfill 2025-01-17 14:11:28 -05:00
serialize-error.js Prettier backfill 2025-01-17 14:11:28 -05:00
strip-ansi.js Prettier backfill 2025-01-17 14:11:28 -05:00
strip-bom.js Strip BOM when applying diffs 2025-03-08 17:50:49 -05:00
vscode.js Remove preferredLanguage and just rely on VSCode language 2025-03-12 11:23:04 -04:00