vscode-copilot-release icon indicating copy to clipboard operation
vscode-copilot-release copied to clipboard

Chat copy issues

Open ElectricRCAircraftGuy opened this issue 2 years ago • 3 comments

  • VS Code Version: 1.82.2
  • OS Version: Linux Ubuntu 22.04
  • Logs: [don't know how to get these]

Steps to Reproduce:

  1. Start a Copilot chat

  2. Ask it anything. Ex: "What's an int?"

  3. In its response, select a few words --> right click your selection --> the two options are "Copy" and "Copy All", as shown here: image

  4. Choose "Copy", it should copy only the selection. Paste it into a text editor and you'll see it copied everything, though, which is the bug. When I paste, I get this:

    GitHub Copilot: In programming, int is short for integer, which is a data type used to represent whole numbers (positive, negative, or zero) that do not have a fractional component. In most programming languages, int is a primitive data type, meaning it is built into the language and can be used without any additional setup.

    It should have just copied the selected part.

ElectricRCAircraftGuy avatar Sep 23 '23 19:09 ElectricRCAircraftGuy

facing this for last 3 4 days

fisforfaheem avatar Sep 28 '23 06:09 fisforfaheem

The context menu acts on the row, not the selection. The following things should work

  • If there's a selection, the keybinding or the context menu action copies the selection
  • If there's no selection, the keybinding or the context menu action copies the focused row

roblourens avatar Oct 03 '23 17:10 roblourens

I got the issue as well. It's worth mentioning that Ctrl-C works on the selected text.

johnnygerard avatar Apr 16 '24 20:04 johnnygerard