When using a prompt that makes a patch, the patch is shown to the user, but when clicking copy he patch is pasted as is into the ide.
I've decieded to use the preview function to open the file.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Refactoring (no functional changes, only code improvements)
[ ] Documentation update
How to Test
use this prompt
Use patch() to fix the following problem
Expected ":"
at the lint
def __init__(self, x, y, vx, vy)
then tell if the generated patch is good in one sentence.
Click the diff button.
Checklist
[x] My code follows the code style of this project.
[x] I have performed a self-review of my code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] New and existing unit tests pass locally with my changes.
[ ] Any dependent changes have been merged and published in downstream modules.
[ ] I have updated the documentation where necessary.
Pull Request Title
Fix: paste patch code block https://github.com/orgs/smallcloudai/projects/5/views/1?pane=issue&itemId=78657574
Description
When using a prompt that makes a patch, the patch is shown to the user, but when clicking copy he patch is pasted as is into the ide.
I've decieded to use the
preview
function to open the file.Type of change
How to Test
use this prompt
Click the diff button.
Checklist
Linked Issues
https://github.com/orgs/smallcloudai/projects/5/views/1?pane=issue&itemId=78657574
Additional Notes
We'll need to test this for file renames.