smallcloudai / refact-vscode

Refact AI: Open-source AI Code assistant with autocompletion, chat, refactoring and more for VS Code
https://refact.ai
BSD 3-Clause "New" or "Revised" License
61 stars 19 forks source link

vscode extension turns off autosave #23

Closed ElliotReed closed 9 months ago

ohare93 commented 10 months ago

Please fix this. This extension turns off Autosave globally, without mentioning that it does so, and with no option to disable it! 😒

I have autosave enabled everywhere for a good reason: I forget to save things! This makes this extension completely useless to me.

ohare93 commented 10 months ago

I see the offending line is here https://github.com/smallcloudai/refact-vscode/blob/main/src/fetchAPI.ts#L312 with the comment "// otherwise diffs do not work properly". What exactly does that mean?

olegklimov commented 10 months ago

When you paste code from chat using "diff":

image

Autosave will save both red and green text, because it's real text, highlighted as diff by the plugin.

Maybe a better solution exists!

uchuhimo commented 10 months ago

Please give us an option to disable it. I only use the code completion, so the diff issue has nothing to do with me.

ohare93 commented 10 months ago

Completely agreed! I don’t use diff either. Please make it a confit option. Hell, just remove it altogether and add a warning somewhere about disabling auto save if you want the diff to work.

artemisart commented 10 months ago

I agree too, disabling (silently!) autosave is a big issue and make refact unusable for many people.

olegklimov commented 10 months ago

OK, we'll fix that in the next release next week! Sorry for any inconveniences.

ohare93 commented 9 months ago

Any idea when the next release will be? πŸ™

olegklimov commented 9 months ago

Fixed, please try πŸŽ‰