Apply from chat

it seems i am having problems with using Chat.


After prompting chat i can Apply it but can choose between applying to the file itself or applying it to the entire file.
what is entire file?

applying it to the file itself, the chat window has to generate again and then i can accept. the accept window sometimes is in the file itself and sometime it is in the chat where the apply “button” was.

Hi @jakob-gross

This means the changes will be applied to the entire file, but only to the necessary sections of code, while the rest will be skipped.

1 Like

thank you deanrie!
Unfortunately often if i choose the file itself (in this case makeComic.tsx) it is not applied at all because it only scans code snipets where there are no changes. Seems like a bug.
But what works is apply to entire file, because then it scans all.
so right now a fix is to just use Apply to entire file, right?
thank you!

I think so, thanks for sharing this.

i also found out what happens often if you dont apply to entire file is:
new code will be written but the old code will not be deleted. so it is twice there, the old version and the new version

Yeah, I’m aware of this issue, thanks.