microsoft / vscode-pull-request-github

GitHub Pull Requests for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github
MIT License
2.3k stars 574 forks source link

"Apply Suggestion with Copilot" modifies entire file #6238

Open burkeholland opened 1 week ago

burkeholland commented 1 week ago

Version: 1.93.1 Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.6.0

Steps to Reproduce:

  1. Open this PR in VS Code https://github.com/microsoft/vscode-docs/pull/7614
  2. Go to the comment on line 28
  3. Click the sparkles
  4. Copilot will add in some odd markup about "Do not change" and then will make the suggestion, but then re-writes the entire article word for word as part of the diff.
alexr00 commented 3 days ago

@chrmarti is this one that you're aware of?

chrmarti commented 2 days ago

This is the ✨ on a GHPR review comment which opens the Inline Chat. I cannot repro with the comment on that PR (though the line number doesn't match the one mentioned above).

I noticed the ✨ action on the GHPR review comments doesn't work in the diff editor.

alexr00 commented 2 days ago

Sorry about the noise @chrmarti!