Skip to content

bug(tools): editor_replace tool clears whole file and writes it again #37

@Gh61

Description

@Gh61

Hello,
thank you for this extension. It is very useful for integrating AI with Visual Studio.
There are a few things missing that would make it work better for our use case.
If you do not mind, I would like to suggest a few improvements. I may even implement some of them myself in the future if I find the time.

When the AI is calling the editor_replace tool, as a result the file is completely cleared and written all over again.
This is creating 2 steps in editor history (when using Ctrl+Z), one being completely empty file.

Please improve the logic behind the editor_replace action, so it only replaces parts of the text, that are needed.
Thank you

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions