Commit graph

331 commits

Author SHA1 Message Date
Roo Code
96ab5dcb1f Don't clobber existing user.name and user.email git config values 2025-02-09 00:28:17 -08:00
Roo Code
e38d9ecb22 Merge remote-tracking branch 'origin/main' into mrubens-patch-4 2025-02-09 00:53:18 -05:00
cte
152c5a026a Remove simple-git debugging 2025-02-08 09:09:14 -08:00
Matt Rubens
719331385b
Update CheckpointService.test.ts 2025-02-08 12:00:11 -05:00
cte
59ddaa9f00 Current checkpoint indicator 2025-02-08 01:07:31 -08:00
cte
2bff829816 Checkpoints service 2025-02-07 22:23:54 -08:00
MuriloFP
c9be470319 fix: prevent race conditions in McpServerManager singleton initialization
Added thread-safe initialization to the McpServerManager singleton pattern to
prevent potential race conditions when getInstance is called concurrently.
The changes include:

1. Added initializationPromise to track ongoing initialization
2. Implemented double-checked locking pattern:
   - First check: Return existing instance if available
   - Second check: Wait for any ongoing initialization
   - Third check: Double-check inside initialization block
3. Added proper cleanup in finally block to prevent deadlocks

This ensures that:
- Only one McpHub instance is ever created
- Concurrent calls wait for initialization to complete
- Resources are properly initialized and cleaned up
- No memory leaks from incomplete initialization

The fix maintains the existing functionality while making it safe for
concurrent access in VS Code's multi-window environment.
2025-02-07 17:12:39 -03:00
MuriloFP
b2b5e1ffa6 fix: Implement singleton pattern for MCP server management to prevent multiple instances
Problem:
- Multiple instances of the Roo Code application were launching separate MCP server instances
- This led to unnecessary resource consumption and potential conflicts between instances

Solution:
1. Created new McpServerManager singleton class to manage MCP server instances:
   - Static getInstance() method ensures only one McpHub instance exists
   - Tracks registered ClineProvider instances
   - Handles cleanup on extension deactivation

2. Modified ClineProvider class:
   - Changed mcpHub from private to protected
   - Added getMcpHub() public getter method
   - Updated initialization to use McpServerManager
   - Added unregister logic in dispose()

3. Updated extension.ts to handle cleanup:
   - Added McpServerManager cleanup in deactivate()

Technical Implementation:
- Uses WeakRef for provider tracking to allow proper garbage collection
- Maintains global state to track instance IDs
- Implements proper cleanup of resources on disposal
- Ensures backward compatibility with existing code

This change significantly improves resource usage and prevents potential conflicts
between multiple instances of the application while maintaining all existing
functionality.
2025-02-07 15:51:30 -03:00
kohii
1cd90a655b feat: Add Kotlin support in list_code_definition_names 2025-02-02 10:17:57 +09:00
Matt Rubens
57518e10b3 Add per-server MCP network timeout configuration 2025-01-26 22:49:21 -05:00
Piotr Rogowski
048863e039 Do not exclude whole project dir when listing in case where project is places inside excluded dir (like /tmp or ~/tmp) 2025-01-26 08:31:07 +01:00
Matt Rubens
b8e0aa0cde Custom modes 2025-01-21 09:39:54 -05:00
Matt Rubens
60a0a824b9 Prettier backfill 2025-01-17 14:11:28 -05:00
Matt Rubens
5fbfe9b775 Add test coverage 2025-01-07 16:20:11 -05:00
Matt Rubens
ff062c6e2e Allow selection of multiple browser viewport sizes and adjusting screenshot quality 2024-12-29 16:26:18 -08:00
LibertyTeeth
72eadedcd4
Update BrowserSession.ts
One-line change to improve Roo-Cline's eyesight.

Aside: the above improves an AI's vision; the below works for people.  My prescription has gone from -4.50 to -2.50 in a year, and I only do the exercises once a month or so, after the first few weeks of once a day:

https://www.youtube.com/watch?v=7TU7o5E3QuU
2024-12-24 13:20:36 -05:00
Matt Rubens
6a6084b7ca Toggle to switch browser size to 1280x800 2024-12-18 00:33:46 -05:00
Matt Rubens
3d7ff32406 Allow enabling/disabling of MCP servers 2024-12-14 01:39:25 -05:00
Matt Rubens
1346f1280c MCP checkbox for always allow 2024-12-13 16:14:13 -05:00
Matt Rubens
be3d8a6166
Incorporate MCP changes (#93)
Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
2024-12-12 23:16:39 -05:00
Mark Percival
93e70c62f1
Chore: Prettier for consistant formatting (#794)
* Chore: Pretier for consistant formatting

- TODO: This PR needs to be updated by Saoud after he runs `npm install` & `npm format:fix` and commits the results of the prettier changes.

* Revert prettier config

* Run npm install

* Fix prettier config and ignore package lock

* Run format

---------

Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
2024-11-21 13:13:54 -08:00
Saoud Rizwan
bca22a8aa1 Fixes 2024-10-27 18:33:20 -04:00
Saoud Rizwan
78a3666f68 Fixes 2024-10-27 16:25:28 -04:00
Saoud Rizwan
fbc987e220 Adjust browser resolution; show loading spinner when browser session has started 2024-10-27 16:05:26 -04:00
Saoud Rizwan
d9f9e7ba16 Add browser_action tool 2024-10-27 02:39:41 -04:00
Saoud Rizwan
c04dfc76cb Misc refactor cline 2024-10-09 01:49:59 -04:00
Saoud Rizwan
2b63b91bfb Refactor out file helpers into fs.ts 2024-10-09 01:49:55 -04:00
Saoud Rizwan
40f7942801 Refactor out of utils 2024-09-24 11:45:12 -04:00
Saoud Rizwan
888b3b7022 Refactor glob 2024-09-24 11:21:08 -04:00
Saoud Rizwan
24bad56785 Refactor services 2024-09-24 11:15:24 -04:00
Saoud Rizwan
e410e317cc Refactor tree-sitter 2024-09-24 11:07:37 -04:00