continuedev / continuedev/continue

Applying code doesn't work correctly on diffs

Open
#4,478 9 comments 6 reactions 1 assignee View on GitHub

@Patrick-Erichsen is already working on this.

Since Mar 4, 2025.

area:inline-edit ide:vscode kind:bug needs-triage os:linux
Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.