Open mikebronner opened 1 year ago
If it doesn't have any views what did you want the button to do? You could assign a command to the button?
I was hoping to open the copilot GPT chat panel (this is new in beta). It does allow for assigning keyboard shortcuts to it:
Is there a way I can take advantage of that?
Update: this ended up opening the panel, but wouldn't show as active panel in Activitusbar:
{
"name": "command.workbench.panel.interactiveSession.view.copilot.focus",
"codicon": "octoface"
},
Good enough work-around for now, but would be awesome to see if there's a way to get the active panel indication to work down the road. :)
Thanks for all your work on this @Gruntfuggly
Update 2: after the most recent update today (8 Jun 2023), the command now is:
{
"name": "command.workbench.panel.chatSidebar.copilot",
"codicon": "octoface"
},
Still no proper view that I could find.
command.workbench.panel.chat.view.copilot.focus
is slightly better as it actually focuses the sidebar.
Following two for GitHub's Copilot Labs and Chat:
"activitusbar.views": [
{
"name": "command.workbench.view.extension.copilot-labs",
"codicon": "beaker",
},
{
"name": "command.workbench.panel.chat.view.copilot.focus",
"codicon": "octoface"
}
]
*(optional) Toggle Primary Side Bar Visibility:
"activitusbar.views": [
{
"name": "command.workbench.action.toggleSidebarVisibility",
"codicon": "list-flat"
}
]
Thanks, that's great. Also there's
"activitusbar.views": [
{
"name": "workbench.action.toggleAuxiliaryBar",
"codicon": "list-flat"
}
]
if you have Copilot on the right sidebar.
Is there some way to get it to focus the chat if the sidebar is closed, and toggle it if it's open?
I'm trying to get copilot nightly to work in the activitusbar, but its
package.json
does not have any views or view container. Any thoughts on how to handle that?