-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Inconsistent passing of local file context #24
Comments
Removing and re-adding the extension in our org and logging out and back into vscode fixed the issue, not idea why. |
I'm re-opening this issue, my workaround above doesn't seem to reliably work. It's frustrating because there's no indication that the file content isn't being sent and no re-prompting for permissions. |
I think this is similar to #22 and:
|
@D1M1TR10S and @nhu-do I see you contributed to the https://github.com/copilot-extensions/user-feedback#feedback-to-the-github-product-team instructions. I'm unable to add the "github team" label but think this needs to be seen by the team. Thank you. |
Hi @garrmark, thanks for reaching out. Can you confirm whether you've provided the |
yes @nhu-do I have. I have gotten it to pass the file in both vscode and visual studio, but it isn't consistent. Sometimes it works until I open a new chat and then stops working. Sometimes I can get it to work again by some combo of removing/reinstalling the extension and logout/login. Sometimes nothing I do seems to work. |
Thanks for verifying @garrmark! Based on the missing information in message payload 6, this might be an issue with how VS Code is identifying your repository. Rather than sending your repo as the id, it is sending some UUID which prevents the platform from doing proper hydration of the repo data. This may also explain your inconsistent experience as well. @isidorn, can you look into this issue? |
Maybe @roblourens has an idea. Though it might be best to just file this issue here (or move it) https://github.com/microsoft/vscode-copilot-release And then we can investigate on the vscode side. |
Thanks @isidorn I filed a bug over there too microsoft/vscode-copilot-release#5166 |
Describe the bug
When I run the copilot-extensions/rag-extension example and capture the request coming from copilot chat running in vscode, it properly shows my current file and selection. When I switch my vscode to another repo (private in this case), if doesn't pass the current file or selection.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'm expecting all source files to be sent to my extension.
I have the correct permissions set and there are no files excluded in github.
Desktop (please complete the following information):
Additional context
Message payload for step 4 (file sent):
Message payload for step 6 (no file sent):
The text was updated successfully, but these errors were encountered: