microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
295 stars 28 forks source link

Copilot stopped seeing code references #1247

Open maksemen2 opened 1 month ago

maksemen2 commented 1 month ago

image

Copilot stopped seeing code references. Previously, you could highlight a piece of code to use as a reference and it worked, but now, despite the fact that it says "Used 1 reference" at the top of the Copylot message, it replies that it can't give an answer because it can't see the code.

Steps to Reproduce:

  1. Highlight the code we need to use as reference
  2. Ask copilot a question
noneffervescent commented 1 month ago

I have the same problem. It cant respond anything on the separate chat, only do suggestions inline, it always says that it wasn't provided the whole code

joyceerhl commented 1 month ago

I haven't been able to reproduce this behavior, do you have a repo or file that this happens consistently in?

maksemen2 commented 1 month ago

I haven't been able to reproduce this behavior, do you have a repo or file that this happens consistently in?

Actually, the problem occurs randomly and, unfortunately, I cannot catch any pattern. This problem appears from time to time on its own and goes away on its own, and this is not affected by either reinstalling the extension, reinstalling VSCode, or restarting the system.

jontim commented 4 weeks ago

This has started happening for me in the last week and makes copilot unusable, because i try to paste my code in to the chat, and it exceeds the length limit for input, so it errors out. And then if I just paste a snippet, all it does is tells me what that snippet does, it is not retaining the context of the previous message let alone the context of the whole chat. I have had zero successful completions since this started happening 2 weeks ago, so I've had to start using other solutions. Given I paid for this for a year, and it was invaluable when it worked, i'd love to fix this somehow.