A very very bad experience with ”CHAT -> apply (entire code)“

I ended my 1.5-year GitHub Copilot subscription after using it for only about a month. It’s great, but recently when I use the ‘Apply’ button in the chat, it becomes very inconvenient, especially when my source code gets too long. The AI often replaces useful, unrelated parts of my code with comments like {/*... other header content...*/} or //...other properties... when updating a portion of the code.

If I hit the ‘Apply’ button, the incomplete code from the chat overwrites my entire code! It only shows the changes, but removes the untouched parts of my code, replacing them with comments. This doesn’t happen often, but when it does, it’s frustrating because I have to hit ‘Reject’ and manually compare the changes to add them myself.

1 Like

I have the same issue and it is indeed frustrating. I am building a chrome extension and the content.js file is too long for cursor to add any new features or updates. I tried separating the files and using webpack as a bundler but I Could not get it to work on my existing extension at all, the config was always breaking for one reason or another. I am fine building in webpack from scratch but with an existing project I can never get it to work.

If you are able to break your project down into separate components that would be the only way to get it to work properly. I cannot wait for the token lengths to be increased in future models but we just have to wait and see.

The apply never works for me!