Gruntfuggly / activitusbar

A VSCode extension to save some real estate by recreating the activity bar buttons on the status bar
Other
114 stars 15 forks source link

Github Copilot #71

Open mikebronner opened 1 year ago

mikebronner commented 1 year ago

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?

Gruntfuggly commented 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?

mikebronner commented 1 year ago

I was hoping to open the copilot GPT chat panel (this is new in beta). It does allow for assigning keyboard shortcuts to it:

Screenshot 2023-05-02 at 1 25 25 PM

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.

battaglia01 commented 1 year ago

command.workbench.panel.chat.view.copilot.focus is slightly better as it actually focuses the sidebar.

zxmaster commented 1 year ago

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"
  }
]
battaglia01 commented 1 year ago

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?