smallcloudai / refact-chat-js

Shared chat code for all IDEs
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Diff code block #104

Closed MarcMcIntosh closed 3 weeks ago

MarcMcIntosh commented 3 weeks ago

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

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

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.