Commit graph

135 commits

Author SHA1 Message Date
Eric Wheeler
13c75a19d1 Revert "Disable terminal actions for now"
This reverts commit 93a394dd93 which has
been fixed by PR #1365.

Fixes: #1380
2025-03-10 20:53:39 -07:00
Eric Wheeler
75de043ded Revert "Remove terminal actions"
This reverts commit 75dcc2ffcf which has
been fixed by PR #1365.

Fixes: #1380
2025-03-10 20:53:36 -07:00
Chris Estreich
90a607f111
Merge branch 'main' into cte/roo-code-api 2025-03-10 20:29:36 -07:00
cte
f8a592aac9 Rename ClineAPI to RooCodeAPI and improve types 2025-03-10 11:16:38 -07:00
cte
5a3c20764a Follow the established pattern for command registration 2025-03-10 11:12:11 -07:00
Matt Rubens
50f76584bc Add telemetry and privacy policy 2025-03-07 03:03:44 -05:00
Matt Rubens
e4fb0081b1 Update commands to roo-cline to be consistent with others 2025-03-05 10:39:36 -05:00
Matt Rubens
73ac64924e Merge remote-tracking branch 'origin/main' into human-relay 2025-03-05 10:34:03 -05:00
cte
75dcc2ffcf Remove terminal actions 2025-03-04 15:38:14 -08:00
cte
93a394dd93 Disable terminal actions for now 2025-03-04 15:32:32 -08:00
Felix NyxJae
38c09d09d6 fix: Fix the human relay dialog function and optimize user interaction experience 2025-02-28 10:54:25 +08:00
Felix NyxJae
3bb1d78c17 feat: Added human relay function and related message processing initial version 2025-02-27 18:08:05 +08: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
sam hoang
0ceb370008 feat: add terminal integration commands
- Add terminal context menu commands for:
  - Adding terminal content to context
  - Fixing failed commands
  - Explaining commands
- Implement terminal content selection and retrieval
- Add support prompts for terminal actions
- Register terminal action handlers
2025-02-06 10:27:12 +07:00
cte
aa806fdc17 Extension activation cleanup 2025-01-31 21:23:07 -08:00
sam hoang
2e56149620 feat: add 'Add To Context' code action
- Add new command registration and menu item
- Add new code action type and command ID
- Add support prompt config for adding code to context
- Add message handling in webview for setting chat box content
- Add logic to append selected code to existing chat input
2025-01-30 17:23:12 +07:00
sam hoang
35a7e433f2 refactor: centralize editor utilities and unify command handling
- Create EditorUtils class to centralize shared editor functionality
- Remove duplicated code between CodeActionProvider and command handlers
- Improve command handling to work consistently for both code actions and direct commands
- Add better type safety and error handling for editor operations
2025-01-30 16:26:44 +07:00
Matt Rubens
61fb096f96 Add new/existing task for all three actions 2025-01-27 09:40:04 -05:00
sam hoang
85c49d8eff feat(code-actions): add "Fix Code in Current Task" action
Adds ability to fix code within the context of an active task instead of starting a new one. This allows for more efficient workflow when already working with Roo.

Add new FIX_IN_CURRENT_TASK code action and command
Enhance ClineProvider to support context-aware code fixing
Update tests to verify new action functionality
2025-01-27 14:24:26 +07:00
sam hoang
a7ae6c46d1 feat: user prompt in code action 2025-01-24 22:19:10 +07:00
Matt Rubens
3257dffa56 Review feedback 2025-01-23 15:56:24 -08:00
sam hoang
149e86ed0a fix comment on pr 2025-01-24 00:51:35 +07:00
sam hoang
22907a0578 refactor: consolidate prompt functionality into support-prompt module
- Move code action prompts from core/prompts to shared/support-prompt
- Migrate enhance prompt functionality from modes to support-prompt
- Add UI for managing code action prompts in PromptsView
- Update types and interfaces for better prompt management
2025-01-24 00:46:19 +07:00
sam hoang
7845791720 feat(code-actions): add user input and customizable templates
Add ability to provide custom input when using code actions
Make code action templates customizable and resettable
Refactor code action handling for better maintainability
Add state management for utility prompts
2025-01-24 00:46:19 +07:00
sam hoang
1b26f91ea7 refactor(code-actions): implement parameter object pattern for prompt generation
- Extract prompt templates into constants
- Add createPrompt utility for template string handling
- Consolidate code action handling in ClineProvider
- Update tests to use new parameter object pattern
2025-01-24 00:46:19 +07:00
sam hoang
02a8eb96f1 feat: integrate code actions into extension activation 2025-01-24 00:46:19 +07:00
Matt Rubens
b8e0aa0cde Custom modes 2025-01-21 09:39:54 -05:00
Matt Rubens
431ff57435
Merge pull request #405 from vincentsong/feature/vscode-debug
feat: Added VS Code debugging support with webview build and changed output channel from 'Cline' to 'Roo-Cline'
2025-01-18 10:27:42 -05:00
vincentsong
95b6326ca0 feat: Added VS Code debugging support with webview build 2025-01-18 09:41:54 +11:00
Matt Rubens
60a0a824b9 Prettier backfill 2025-01-17 14:11:28 -05:00
Frank
a102ba520b feat: add pkce 2025-01-15 08:20:20 +11:00
Matt Rubens
75e308b033 Add a screen for custom prompts 2025-01-13 22:45:14 -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
lloydchang
b9c274add2
feat(extension.ts): use rocket icon (#34) 2024-12-01 17:31:58 -05:00
Matt Rubens
6b8f9f7a45
Expose a list of allowed auto-execute commands (#31) 2024-12-01 15:34:36 -05:00
Matt Rubens
cafc2852ca
Allow Roo-Cline to coexist with Cline (#23)
Co-authored-by: ColemanRoo <michael.coleman@roo.vet>
2024-11-28 14:25:41 -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
739a7e070e Refactor assets 2024-10-09 01:49:59 -04:00
Saoud Rizwan
31f5fabc54 Refactor cline-diff 2024-10-09 01:49:59 -04:00
Saoud Rizwan
5190d30ae3 Refactor commands 2024-10-09 01:49:59 -04:00
Saoud Rizwan
6502b3cb24 Rename Cline 2024-10-09 01:49:59 -04:00
Saoud Rizwan
385c54d3c0 Refactor Cline 2024-10-09 01:49:59 -04:00
Saoud Rizwan
83ce17db11 Refactor ClaudeDev 2024-10-09 01:49:58 -04:00
Saoud Rizwan
23d664be8e Fixes 2024-10-09 01:49:58 -04:00
Saoud Rizwan
fe052d28df Refactor ClineProvider 2024-10-09 01:49:58 -04:00
Saoud Rizwan
da3aa7a658 Refactor ClineProvider 2024-10-09 01:49:58 -04:00
Saoud Rizwan
40f7942801 Refactor out of utils 2024-09-24 11:45:12 -04:00
Saoud Rizwan
7c21a4c833 Refactor out of utils 2024-09-24 11:36:37 -04:00
Saoud Rizwan
4a1f61d4b5 Refactor ClaudeDev 2024-09-24 11:02:53 -04:00
Saoud Rizwan
3466859536 Refactor exports 2024-09-24 10:51:31 -04:00