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
326 stars 30 forks source link

#file commands and @worspace commands not working as expected in insider edition. #702

Closed monko9j1 closed 6 months ago

monko9j1 commented 9 months ago

Steps to Reproduce for #file command:

  1. I gave it 2 files using the new #file command as seen in this screenshot: image

  2. As you see it only shows referencing 1 of the files, I think this is due to it being in the active widow in my editor. I feel like the #file commands bug out due to what is currently in focus. I did a test and closed all editors windows and tried the same prompt again, attempting to send the files, this was the result: image This time it did not even say referencing at all.

  3. I ran another test and thought maybe it had somethin to do with my history, so i deleted all of my history, started a new chat window, and tried the same prompt again, this time as well with no editor windows open. This was the result: image It showed no files as referenced, somehow it still knows the code for my #file:Translation.razor file. However i noticed it never mentioned the file #file:MainLayout.razor so I asked it a question, if it did send #file:Translation.razor (if the command worked properly) it should have context on it and answer a direct question regarding it. The result was the following: image If it did send the file correctly it should have gave me context on the file, however it starting talking about a default file. As you see, at the end of the same prompt from above it says it does not have access to the MainLayout.razor file: image As well, i simply asked if it i provided the MainLayout.razor code, which it responded I did not.

Steps to Reproduce for @workspace command:

  1. I gave it a clear prompt using the @workspace command, stating exactly which files, as well as telling it to grab the full code for said files, here the what happened: image I noticed that the @workspace command as well is very buggy, for example i checked to see the code it referenced. For mainlayout.razor, it did only from line 1-25 full code is 39 lines, so it decided to cut off at a random point: image For the second requested file Translation.razor, it did not even reference any lines at all: image So the end result, it couldn't answer my question.

Thought i'd report this so you guys can have a look, thanks!

roblourens commented 6 months ago

Please see my response here, thanks

https://github.com/microsoft/vscode-copilot-release/issues/1066#issuecomment-2024135134