Copilot Chat in Visual Studio Cannot Access or Edit Open Files #183549
Unanswered
william-blane-west
asked this question in
Copilot Conversations
Replies: 1 comment 1 reply
-
|
My issue was resolved. My company recently changed our login user id (email address) and while the old user account name worked as far as logging into Azure DevOps it was not working for Copilot in VS 2022. I signed out. Logged in again and re-entered my credentials with the new user account name (new email address) and my issue was resolved. It had something to do with how Agent Mode relies heavily on repo-level indexing to understand the project structure. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
General
Body
Hello GitHub Copilot Community,
I am experiencing a significant limitation with Copilot Chat in my IDE (Visual Studio 2022):
This started a month or so ago.
Copilot Chat is unable to access or read files that are open in my local project, even when they are open in the editor. This prevents Copilot from reviewing, editing, or providing context-aware assistance for my actual project files, which severely limits its usefulness for real-world development.
Copilot tells me the issue is not related to file or folder permissions in my operating system (Windows 11).
The Real Cause
• The limitation is in the Copilot Chat extension’s integration with Visual Studio.
• It is a known product limitation or bug, not a Windows or file system security issue.
Steps to reproduce:
Open a project in Visual Studio 2022.
Open several source files in the editor.
Ask Copilot Chat to review or edit one of the open files.
Copilot responds that it cannot access the file, even though it is open.
Expected behavior:
Copilot Chat should be able to access, read, and edit files that are open in the IDE, or at least provide a way to explicitly grant access to those files.
Actual behavior:
Copilot Chat repeatedly says it cannot access the file, even when it is open in the IDE.
Impact:
This makes it difficult to use Copilot Chat for real project work, as it cannot interact with my actual codebase unless I copy and paste code into the chat. This makes it challenging with larger projects. I might as well use Gemini in my browser.
Request:
Please share if you are experiencing the same issue and if you resolved it please provide the steps to resolutoin.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions