Can VS Code API Replace Copilot Chat Sidebar with Custom View? #2767
-
Hello VS Code community, I’m working on a custom extension and would like to replace the default Copilot Chat sidebar with my own chat plugin, integrated with a custom AI service. I’m seeking guidance on the feasibility and best practices. BackgroundI want to create a custom sidebar view in VS Code using the Extension API, providing a similar user experience (e.g., chat interface, code context support) while disabling or overriding the default Copilot Chat view. What I’ve Tried
Questions
Additional Info
Looking forward to your insights! Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @John0079 , I don't think you could replace the Copilot Chat sidebar the way you are describing, unless the Copilot Chat extension itself allows such customization, and provide API for that. Instead, if you want to create your own Copilot like extension, you simply create your own Sidebar (using On the other hand, if what you are asking for is to be able to put your custom Sidebar view in the About your disappeared issue (#257927), it was, in fact, registered in the VS Code repo, not in the GitHub Copilot Chat repo, as you may see here microsoft/vscode#257927. Hope this helps |
Beta Was this translation helpful? Give feedback.
-
@alefragnani @justschen Thank you for your insights! I’ve upvoted #240368 to support opening the Secondary Side Bar API. I’d like to share some thoughts on why this could be valuable. Currently, Copilot Chat focuses on code-related tasks, but many users, including myself, have diverse needs—e.g., editing images, generating charts, or other non-coding workflows. For instance, I’d like to integrate a custom view for image editing or chart customization, which Copilot doesn’t support. I see Copilot as a potential intelligent agent, acting as a bridge between large language models and users’ specific tasks. With thousands of unique workflows, it’s challenging for VS Code developers to anticipate every use case. Opening the Secondary Side Bar API would empower the community to build tailored solutions, enhancing VS Code’s versatility. Could the team consider this for future releases? I’d be happy to provide more examples or collaborate on use cases. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @John0079 ,
I don't think you could replace the Copilot Chat sidebar the way you are describing, unless the Copilot Chat extension itself allows such customization, and provide API for that. Instead, if you want to create your own Copilot like extension, you simply create your own Sidebar (using
viewsContainers
contribution point) with your own webview created withregisterWebviewViewProvider
API, as you already tried.On the other hand, if what you are asking for is to be able to put your custom Sidebar view in the
Secondary Side Bar
, like GitHub Copilot Chat does, there is no API available yet, but someone else already opened an issue in the VS Code repo, so you could upvote (microso…