Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying code doesn't work correctly on diffs #4478

Open
3 tasks done
pwilkin opened this issue Mar 4, 2025 · 2 comments
Open
3 tasks done

Applying code doesn't work correctly on diffs #4478

pwilkin opened this issue Mar 4, 2025 · 2 comments
Assignees
Labels
area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"

Comments

@pwilkin
Copy link

pwilkin commented Mar 4, 2025

Before submitting your bug report

Relevant environment info

- OS: Linux
- Continue version: 1.0.2
- IDE version: VSCode 1.97.2

Description

When I ask the model to give me diff-formatted changes instead of producing entire files, Continue seems to apply them correctly. However, the "apply/reject" controls nor the bulk accept/reject all changes buttons don't appear on the Apply bar and in some cases applying the changes in the code editor bugs out (for example, you click on "Accept" but the change doesn't get accepted).

To reproduce

Write in a system message that the model should present differences in code to apply as diffs instead of entire files. Try to apply any bigger change (that involves more than one location).

Log output

Sometimes, I get the "cannot apply on closed editor" bug even though the editor is still open.
@dosubot dosubot bot added area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior labels Mar 4, 2025
@Symfomany
Copy link

In Continue, can we preview or visualize on current file with diff file line by line ?

@pwilkin
Copy link
Author

pwilkin commented Mar 5, 2025

Yes, you can apply a diff and it will visualize in the code (but it's bugged, see above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"
Projects
None yet
Development

No branches or pull requests

3 participants