Commit Graph

1680 Commits

Author SHA1 Message Date
Daniel Riccio
e6d3db6075 refactor: use confidenceThreshold from the settings in new diff strategy 2025-01-14 17:59:46 -05:00
Joe Manley
14d0b69c79 Fix icon color - light theme 2025-01-14 14:58:24 -08:00
Daniel Riccio
e00ec0cc3f test: add unit tests for NewUnifiedDiffStrategy constructor and confidence threshold behavior
- Introduced tests for the NewUnifiedDiffStrategy constructor to verify default and custom confidence thresholds.
- Ensured that the minimum confidence threshold is enforced, preventing values below 0.8.
- Enhanced test coverage for the strategy's initialization logic, improving overall reliability and maintainability.
2025-01-14 17:57:55 -05:00
Daniel Riccio
f6e85fa133 feat: introduce experimental diff strategy toggle and enhance diff handling
- Added support for an experimental diff strategy in the Cline class, allowing users to opt for a new unified diff approach.
- Updated the getDiffStrategy function to accommodate the experimental strategy, adjusting the fuzzy match threshold accordingly.
- Integrated experimentalDiffStrategy into the global state management, enabling persistence across sessions.
- Enhanced the ClineProvider and related components to handle the new experimental strategy, including UI updates for user settings.
- Improved task history management to include the experimentalDiffStrategy setting, ensuring consistency in task execution.
- Updated relevant interfaces and types to reflect the new experimentalDiffStrategy property.
2025-01-14 17:57:09 -05:00
Daniel Riccio
a211927097 refactor: enhance error handling and debugging in NewUnifiedDiffStrategy
- Improved error messages for cases where no hunks are found in the diff, providing clearer guidance on format requirements.
- Added detailed debug information for search and edit failures, including context line ratios and potential issues to assist users in troubleshooting.
- Streamlined the logic for determining the cause of edit failures, distinguishing between search and content mismatch errors.
- Enhanced overall readability and maintainability of the code with consistent formatting and structured comments.
2025-01-14 17:09:20 -05:00
Daniel Riccio
5c420bb7e1 refactor: cleanup 2025-01-14 17:02:39 -05:00
Daniel Riccio
b30cb29358 refactor: cleanup 2025-01-14 17:01:46 -05:00
Daniel Riccio
a323a1008e refactor: enhance Git fallback strategy in edit processing
- Improved logging within the applyGitFallback function to provide clearer insights during the commit and cherry-pick processes.
- Streamlined error handling to ensure more informative console outputs when operations fail.
- Maintained consistent formatting and indentation for better readability and maintainability of the code.
- Ensured temporary directory cleanup is handled correctly in all scenarios, preventing potential resource leaks.
2025-01-14 17:00:51 -05:00
Daniel Riccio
3d901929c2 test: add comprehensive tests for NewUnifiedDiffStrategy error handling and edge cases 2025-01-14 16:44:15 -05:00
Frank
f759398b36 fix: correct VSCode URI 2025-01-15 08:24:21 +11:00
Frank
a102ba520b feat: add pkce 2025-01-15 08:20:20 +11:00
Matt Rubens
72465c1fc2 Merge pull request #356 from RooVetGit/changeset-release/main
Changeset version bump
2025-01-14 16:17:56 -05:00
Matt Rubens
ed14c4bbc5 Update CHANGELOG.md 2025-01-14 16:15:31 -05:00
github-actions[bot]
a128c3720d changeset version bump 2025-01-14 21:13:33 +00:00
Matt Rubens
6b15f827d8 Merge pull request #359 from RooVetGit/fix_custom_instruction_clearing
Fix bug with clearing custom instructions
2025-01-14 16:12:37 -05:00
Matt Rubens
f2d25dd5a5 Fix bug with clearing custom instructions 2025-01-14 16:11:53 -05:00
Matt Rubens
4493b55276 Merge pull request #351 from RooVetGit/custom_prompts
Custom prompts
2025-01-14 15:26:54 -05:00
Matt Rubens
1f17f72d44 Release 2025-01-14 15:23:45 -05:00
Matt Rubens
365f4acf63 Add mode-specific custom instructions 2025-01-14 14:54:30 -05:00
sam hoang
89e119f121 feat(mentions): implement fuzzy search for file/folder mentions
Adds fuzzy search functionality using Fuse.js to improve file and folder search in mentions.
2025-01-15 01:23:18 +07:00
Matt Rubens
88ea875bbb Merge pull request #353 from RooVetGit/markdown_copy
Add a button to copy markdown out of the chat
2025-01-14 12:21:15 -05:00
Daniel Riccio
534888af97 refactor: improve NewUnifiedDiffStrategy with enhanced formatting and error handling
- Cleaned up formatting in the parseUnifiedDiff method to ensure consistent indentation and spacing.
- Updated documentation to clarify format requirements for generating unified diffs.
- Added error handling for cases where no hunks are found in the provided diff, improving robustness.
- Enhanced overall readability of the code by standardizing comments and structure.
2025-01-14 12:20:52 -05:00
Daniel Riccio
d25f370013 refactor: enhance NewUnifiedDiffStrategy for improved diff parsing and context handling
- Refactored the parseUnifiedDiff method to streamline the processing of diff lines and improve context line management.
- Added handling for empty context lines to ensure accurate representation in hunks.
- Updated the tool description to clarify requirements for generating unified diffs, emphasizing the importance of preserving indentation and grouping related changes.
- Improved overall readability and consistency of the code by standardizing formatting and indentation practices.
2025-01-14 12:01:09 -05:00
Daniel Riccio
258024aa5a refactor: enhance search strategies with adaptive thresholds and overlapping windows
- Introduced adaptive confidence thresholds based on file size to improve search accuracy.
- Implemented overlapping window functionality in search strategies to capture matches more effectively.
- Added helper functions for evaluating content uniqueness and creating overlapping windows.
- Enhanced existing search functions (exact, similarity, and Levenshtein) to utilize new strategies for better match validation.
- Improved logging for search results to facilitate debugging and analysis of search performance.
2025-01-14 12:00:29 -05:00
Matt Rubens
092a121a37 Refactor to support more sections in the future 2025-01-14 09:34:10 -05:00
Matt Rubens
5140b67d74 Add a button to copy markdown out of the chat 2025-01-14 01:13:02 -05:00
Matt Rubens
75e308b033 Add a screen for custom prompts 2025-01-13 22:45:14 -05:00
Matt Rubens
4027e1c10c Add non-streaming completePrompt to all providers 2025-01-13 17:20:06 -05:00
Matt Rubens
2d176e5c92 Reduce the webview test output 2025-01-13 14:05:33 -05:00
Matt Rubens
4c292abf7a Fix margins 2025-01-13 13:06:24 -05:00
Matt Rubens
c7bfcf3e8e Merge pull request #349 from RooVetGit/changeset-release/main
Changeset version bump
2025-01-13 12:26:03 -05:00
R00-B0T
977349911f Updating CHANGELOG.md format 2025-01-13 17:19:44 +00:00
github-actions[bot]
89f9b84418 changeset version bump 2025-01-13 17:19:02 +00:00
Matt Rubens
f77c036c89 Merge pull request #347 from RooVetGit/update_required_vscode_version
Update required vscode engine to ^1.84.0 to match cline
2025-01-13 12:18:03 -05:00
Matt Rubens
bf1b87e3cb Update .changeset/early-mails-knock.md
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-01-13 08:14:24 -05:00
Matt Rubens
f1d01743fc Update required vscode engine to ^1.84.0 to match cline 2025-01-13 07:57:01 -05:00
Matt Rubens
184fb7e7c0 Merge pull request #340 from RooVetGit/changeset-release/main
Changeset version bump
2025-01-12 15:06:44 -05:00
R00-B0T
d7b7a4fe2b Updating CHANGELOG.md format 2025-01-12 20:04:48 +00:00
github-actions[bot]
a47302a869 changeset version bump 2025-01-12 20:04:10 +00:00
Matt Rubens
ed3954b63b Merge pull request #339 from RooVetGit/more_tiny_tweaks_to_buttons
A couple more tiny tweaks to buttons
2025-01-12 15:03:10 -05:00
Matt Rubens
b53d63abda A couple more tiny tweaks to buttons 2025-01-12 14:59:11 -05:00
Matt Rubens
e493f0501f Merge pull request #335 from RooVetGit/changeset-release/main
Changeset version bump
2025-01-12 14:13:56 -05:00
Matt Rubens
09386dbc95 Update CHANGELOG.md 2025-01-12 14:13:35 -05:00
Matt Rubens
b70143b253 Merge pull request #337 from RooVetGit/mrubens-patch-1
Update README.md
2025-01-12 14:12:54 -05:00
Matt Rubens
41d04c44e7 Update README.md 2025-01-12 14:12:26 -05:00
Matt Rubens
d42ee4d04d Update README.md 2025-01-12 14:11:24 -05:00
R00-B0T
9d532e28c1 Updating CHANGELOG.md format 2025-01-12 19:09:14 +00:00
github-actions[bot]
67398adde6 changeset version bump 2025-01-12 19:08:33 +00:00
Matt Rubens
c3590fac46 Merge pull request #334 from RooVetGit/3.0-fixes
Small fixes
2025-01-12 14:07:39 -05:00
Matt Rubens
5698d10113 Small fixes 2025-01-12 14:05:35 -05:00