Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Copilot #71

Open
mikebronner opened this issue May 2, 2023 · 5 comments
Open

Github Copilot #71

mikebronner opened this issue May 2, 2023 · 5 comments

Comments

@mikebronner
Copy link

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
Copy link
Owner

If it doesn't have any views what did you want the button to do? You could assign a command to the button?

@mikebronner
Copy link
Author

mikebronner commented May 2, 2023

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
Copy link

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

@zxmaster
Copy link

zxmaster commented Sep 21, 2023

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants