Skip to content

Applying code doesn't work correctly on diffs #4478

Open
@pwilkin

Description

@pwilkin

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.

Metadata

Metadata

Labels

area:inline-editRelates to the auto refactor featureide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorneeds-triageos:linuxHappening specifically on Linux

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions