409 questions
-2
votes
0
answers
25
views
GitHub Copilot in VS Code doesn't get the two files in diff mode
When opening vscode using diff mode, the github copilot chat can't attach the two versions as context to the chat.
I was able to write an extension which can do that, but i want to ask isn't there a ...
Tooling
2
votes
0
replies
81
views
How to change GitHub copilot preview API key for Azure Models
New configuration page of Visual Studio Code GitHub Copilot allows you to specify a model hosted in Azure Foundry
The process is simple, but I mistakenly pasted the wrong API key. The problem is that ...
3
votes
3
answers
381
views
How can I make some MCP servers disabled by default in new workspaces?
I am using GitHub Copilot in Visual Studio Code.
Some extensions (GitKraken, ...) sneakily add MCP servers. Whenever I open a new Visual Studio Code window in a new project, all these MCP servers are ...
-1
votes
0
answers
45
views
STS for Eclipse with Copilot Metrics plugin
I use STS for Eclipse and I installed GitHub Copilot plugin and the Copilot Metrics plugin.
In the Copilot Metrics plugin settings, I set up a valid https url and a token but it doesn't work. It ...
2
votes
0
answers
74
views
GitHub Copilot in VS Code triggers a KeyboardInterrupt error when opening PowerShell with conda environment [closed]
I'm encountering an issue when using GitHub Copilot in VS Code.
After Copilot agent modifies a file, it suggests a PowerShell command and asks whether I want it to run the command for me. When I click ...
1
vote
1
answer
301
views
How configure GitHub Copilot in VS Code to work with Azure OpenAI/Azure AI Foundry
I am trying to set up GitHub Copilot Chat with an Azure hosted OpenAI model.
But I am struggling to find an authorative answer on what to enter for the endpoint.
Some blog posts suggest: https://xxx....
0
votes
0
answers
94
views
How to force VSCode to make all auto-completion suggestions in ghost text?
AI-based auto-completions on VSCode seem to be suggested in normal syntax highlighting instead of ghost text. But this behavior does not seem consistent.
First suggestion is made in normal text.
...
0
votes
1
answer
188
views
Assigning Github Issue to Copilot Fails using GraphQL
I'm working in a python based repo and I'm trying to develop a flow where I look for Asana tasks in a specific project and when new ones are found, create a github issue for them and assign them to ...
1
vote
1
answer
124
views
Why does GitHub Copilot sometimes report that no instructions are found, even when AGENTS.md is present in the repository?
I’ve created an AGENTS.md file in my repository to guide GitHub Copilot’s behavior. However, when I assign issues to the agent, it sometimes responds that no instructions are found and offers to ...
0
votes
0
answers
100
views
Failed to sign in to GitHub Copilot in VS Code (Pro account)
I’m having trouble signing in to GitHub Copilot Pro inside VS Code.
I previously used the free trial version and it worked fine, but now after subscribing to Copilot Pro, I keep getting this error:
“...
0
votes
1
answer
142
views
GitHub CoPilot Coding Agent Secrets Management
This question is about the GitHub CoPilot Coding Agent (not the in-IDE CoPilot) - specifically how to pass secrets to the runner - based on the docs I've tried adding the OPENAI_API_KEY both at repo ...
0
votes
0
answers
77
views
How to disable copilot autoComplete unless shortcut key is pressed? [duplicate]
This question has been asked before, but every solution seems to be deprecated.
I want Copilot to stop autocompleting things I type unless I use the shortcut key ALT\ (remapped to tab).
For example, ...
1
vote
0
answers
340
views
VS Code chat.tools.terminal.autoApprove fails to match my command
I'm trying to configure VS Code's chat.tools.terminal.autoApprove setting to automatically approve specific curl commands to localhost when using GitHub Copilot agent mode. However, while simple ...
0
votes
1
answer
31
views
Allowing my BMAD agents to read the local repository
I am a newbie to using BMAD. Do you know how to allow the agents to access my local repository and let them read my code so they can suggest improvements?
2
votes
0
answers
86
views
Can I track the usage of the GitHub Copilot Chat in my VS Code extension?
I have a VS Code extension. Here I want to try to track if the GitHub Copilot Chat is used.
I know I can track if the chat is open. But that is not what I want.
const copilotChat = vscode.extensions....
0
votes
0
answers
266
views
VScode Github Copilot connection issues on WSL
I have been having issues with copilot in VScode, regardless of which model is used.
The issues arise especially in agent/edit mode.
The error message im getting in the output logs:
...
1
vote
0
answers
108
views
How to bulk add commits as context for Copilot Chat in VS Code?
In VS Code how can you add multiple commits as 'context' for GitHub CoPilot chat? You can add one commit via right-click > Add to Chat on that commit in the Source Control > Graph to add it as ...
1
vote
1
answer
79
views
What are the benefits of map resp in every HttpClient call in Angular
Today, I noticed Copilot is adding .pipe(map(resp => resp)); in every single HttpClient call in Angular.
return this.httpClient.get<ICustomer>('url');
// Rather than - Copilot one
return this....
1
vote
0
answers
135
views
GitHub Copilot searching for unavailable files
I'm just getting started with GitHub Copilot. In the chat window, when I asked this question:
What projects are in this solution and how do things work together?
There were some errors. It seems it ...
1
vote
1
answer
1k
views
How to disable chat in VS Code sidebar, but leave it working in open editor?
I like to have my Copilot to be open in a window on the second monitor.
The problem is, when I try to add files to chat context through 'Context menu > Add File to Chat', it opens a chat in the ...
-3
votes
1
answer
200
views
How do I get a chat window in Github Copilot Chat in Visual Studio?
I signed up for github copilot and it appears to be connected to Visual Studio.
But I have this "By continuing, you agree to GitHub's terms and privacy policy." message in the chat panel (...
2
votes
1
answer
311
views
Enforce formatting inside GitHub Copilot code completion suggestions in Visual Studio Code
Current behavior:
GitHub Copilot console.log() suggestion:
console.log('userId:', userId);
Expected suggestion with desired custom formatting:
console.log('userId: ', userId);
Is there a way to ...
1
vote
0
answers
86
views
How to dynamically register Language Model Tools in a VS Code extension?
I want to register different Language Model Tools in my VS Code extension depending on a specific configuration.
Currently, the way VS Code works seems to be:
I need to declare the tool in package....
1
vote
0
answers
82
views
remove copilot as contributor of github repo [duplicate]
This summer, I tried the Copilot functionality to resolve an issue I had in my code.
All the contributions it made were not relevant (see the associated pull request), and I then undid them by making ...
0
votes
0
answers
45
views
How to Pass ACR_VALUES to auth and token endpoint
I'm using GitHub Copilot and have the following mcp.json:
{
"inputs": [],
"servers": {
"MCPServer": {
"url": "http://localhost:7071",
...
0
votes
1
answer
385
views
Copilot waiting for completions makes RStudio hang
I have been using copilot in RStudio for a few weeks, but in the last few days it has been causing me some trouble. Specifically: if I am in the middle of writing a command in my R script, then I ...
0
votes
1
answer
336
views
Why does VS Code use the MCP config from Cursor instead of its own, and how can I fix this?
I'm using both Cursor and VS Code on macOS. Each editor has its own MCP (Model Context Protocol) config:
Cursor: ~/.cursor/mcp.json
VS Code: ~/Library/Application Support/Code/User/mcp.json
Problem
In ...
10
votes
3
answers
16k
views
How to automatically approve/continue GitHub Copilot terminal commands in VS Code?
When using GitHub Copilot in VS Code through the Chat tab, it frequently suggests running terminal commands and asks for iteration permissions. Each time it wants to execute a command or continue ...
-2
votes
2
answers
648
views
How to turn off Copilot in VS Code for a project? [duplicate]
Just updated my VS Code and saw the Github Copilot extension was installed. Tried it for one project, okay. But then I opened another project and Copilot suggestions were just annoying. Can't figure ...
-1
votes
1
answer
205
views
The value of the GITHUB_TOKEN environment variable is being used for authentication [closed]
Following the steps in https://learn.microsoft.com/en-us/training/modules/github-copilot-across-environments/4-git-hub-copilot-for-the-command-line
After installing gh, I tried to run gh copilot ...
1
vote
1
answer
519
views
unknown command "copilot" for "gh"
Following the steps in https://learn.microsoft.com/en-us/training/modules/github-copilot-across-environments/4-git-hub-copilot-for-the-command-line
I run brew install gh then run gh copilot explain &...
10
votes
0
answers
992
views
GitHub Copilot Model Selection: How to Change the Default Version Setting?
How to Set a Persistent Default Model in GitHub Copilot Chat?
Hello,
I'm currently using GitHub Copilot to generate tasks for me. When working with code, I usually prefer to use Claude by selecting it ...
4
votes
2
answers
6k
views
GitHub Copilot Pro active, but VS Code says “monthly chat messages limit reached”
I have a GitHub account with an active Copilot Pro subscription — confirmed on my GitHub account page:
“GitHub Copilot Pro is active for your account. You currently have an active Copilot Pro ...
0
votes
0
answers
192
views
Android Studio freezing when Using GitHub Copilot – ArrayIndexOutOfBoundsException in BlockView
I recently started using GitHub Copilot in Android Studio and I've been running into a really frustrating issue. I looked into the logs and found this error:
"java.lang....
0
votes
0
answers
200
views
How to detect Copilot Chat request status (pending vs. completed) in a VSCode extension?
In my VSCode extension, I can send a message to Copilot Chat using:
prompt = "add feature"
await vscode.commands.executeCommand('workbench.action.chat.open', prompt);
However, I have no way ...
1
vote
2
answers
243
views
disconnect Visual Studio from a Copilot subscription
How to disconnect Visual Studio from a Copilot subscription so that it is possible to subscribe to another subscription?
0
votes
0
answers
102
views
How to Trigger/Invoke Specific Python Functions from GitHub Copilot
Recently, I came across a webinar where the presenter was invoking custom functions from the Co-pilot VS Code extension. The functions were getting invoked based on the content of the prompt, and ...
1
vote
1
answer
955
views
System.Exception while using Copilot in Visual Studio
When entering a Copilot prompt in Visual Studio v17.14.6 using the Gemini Pro LLM (enterprise) in agent mode, the result is the error message. The LLM seems to process fine and can see an answer being ...
1
vote
1
answer
1k
views
VS Code Copilot Figma MCP tools disappearing on restart with 'Error loading 1 tool(s)' - how to get detailed error logs?
I'm experiencing an intermittent connection issue with Figma's MCP (Model Context Protocol) server in VS Code with GitHub Copilot. After following the official Figma documentation (https://help.figma....
2
votes
0
answers
2k
views
MCP: Not All the Tools being Listed
Need help on this issue that not all the MCP tools are listed on the "select tools" under the chatbox on VSCode Copilot Agent Mode, which looks like the same issue as:
https://github.com/...
-4
votes
1
answer
126
views
How to get Github Copilot Suggestions window in VsCode
I am following a tutorial about Github Copilot in VsCode
I came across the following screen shot.
So how do I get to that Suggestions window that you see on the right? Is there any keyboard shortcut ...
1
vote
2
answers
2k
views
Copilot Agent Not Using My MCP Extensions in VS Code – Any Fix?
I’m currently using VS Code with GitHub Copilot and have installed 3 different MCP . At the beginning, everything worked fine — the MCPs were running without me needing to trigger them manually. I ...
0
votes
0
answers
16
views
How to `Chat: Detach Instructions` (opposite of `Chat: Attach Instructions`)
I recently created several instructions under User Data Folder. I want to exclude them from being attached to every single chat, how can I do the opposite of Chat: Attach Instructions when there's no ...
0
votes
1
answer
302
views
VS Code as Admin with GitHub Copilot
I want to use Visual Studio Code + GitHub Copilot.
That works fine if I start VS code with my normal user.
But my problem is:
I start my VS Code with a different windows (admin) user
I click on login ...
1
vote
1
answer
1k
views
Can't connect local FastMCP to copilot
Hello I have developed a MCP server in python
mcp= FastMCP("mymcp", dependecies=["dotenv"],
stateless_http=True, host="127.0.0.1", port=8000)
#tools
if ...
0
votes
1
answer
816
views
Why is GitHub Copilot not calling my MCP tool correctly?
I am currently developing a simple MCP (Model Context Protocol) server with TypeScript. The goal is that a tool called hello is called via the GitHub Copilot chat with 'hello' and returns “Hello, ...
6
votes
2
answers
2k
views
How can I configure GitHub Copilot Agent Mode to use ";" instead of "&&" for terminal commands in Visual Studio Code?
How can I configure GitHub Copilot Agent Mode to use ";" instead of "&&" in Visual Studio Code for terminal commands that run in Powershell?
GitHub Copilot suggesting &&...
0
votes
1
answer
305
views
How do I modify a GitHub Copilot MCP (Model Context Protocol) input?
Where does VS Code and Visual Studio store the MCP input? I gave them the wrong token and I want to change them now but cannot find it anywhere.
This is my definition:
"mcp": {
...
5
votes
4
answers
6k
views
GitHub Copilot sign-in button not responding in VS Code after signing out — stuck in GHE.com instance login
After GitHub Copilot signed me out unexpectedly in VS Code, I was unable to sign in again. The "Sign in" button in the Copilot extension panel was unresponsive — clicking it did nothing.
I ...
1
vote
0
answers
572
views
GitHub Copilot won't connect in VS Code even after full reinstall and gh auth login
I'm having a persistent issue with GitHub Copilot in Visual Studio Code on Windows.
Every time I open VS Code, Copilot asks me to sign in. But when I click the “Sign in” button, either nothing happens ...