continuedev/continue

"No active editor to apply edits to" error when Agent try to edit a file

Opened this issue · 3 comments

Discussed in #7683

Originally posted by alex-piccione September 9, 2025
I use VS Code with Continue.dev extension.

When I ask the Agent to edit a file I get this error:

"No active editor to apply edits to"

It appears as a notification message in VS Code, when I click "Accept".

image image

The models I use:
image

The Gemini model works (for example when I use it in the Chat mode), so the key is ok.
Also, create a new file works (I "Accept" the request to "Create file").

Searching that string "No active editor to apply edits to" in Google does not give me any result apart 2 pages in chinese, like is very uncommon error.

Does this only happen when Gemini hallucinates a file by chance?

this is happening to me too, I'm using a local lm-studio and a qwen coder model, and asking it to amend package.json, which exists. it doesn't seem to have any issue creating a new file.

it seems to me that the 'no active editor' is happening for me when Continue is in it's own window (on my second monitor) but it doesn't happen when my continue session is in the CHAT pane on the right side of the main vscode window.

I am having other issues with file edits but this is quite repeatable for me, running Continue in a separate window stops me from being able to amend an existing file

The issue happened only when the Continue extension panel was "detached": opened on a separate window (also if on the same monitor).

I just updated VS Code.
Updated Continue version (1.2.2 -> 1.2.4) and updated VS Code (1.104.1) on Windows: it is not showing the "open on a new window" button on the extension panel (#7858 #7858).
I can't replicate the issue (ut the worst thing is that I cannot use the tool if I have to use it in the Activity Bar, too small space to work confortably).