aws-toolkit-vscode icon indicating copy to clipboard operation
aws-toolkit-vscode copied to clipboard

Improve copy + paste formatting for Q responses

Open aerle opened this issue 9 months ago • 0 comments

Problem

When copying + pasting responses from Q, newlines are added whenever text formatted as code (enclosed in backticks) is met.

Steps to reproduce the issue

  1. Ask Q a question. For instance:

Could you explain the secretValueFromJson method offered by the Secret construct in CDK?

  1. Await for Q's response:

The secretValueFromJson method is part of the ISecret interface in the AWS Cloud Development Kit (CDK). [...]

  1. Copy + paste the response. The pasted text contains newlines for each time code is encountered:

The secretValueFromJson method is part of the ISecret interface in the AWS Cloud Development Kit (CDK).

Screenshot 2024-05-14 at 3 00 45 PM

Expected behavior

Nicely-formatted text that does not contain the aforementioned newlines:

The secretValueFromJson method is part of the ISecret interface in the AWS Cloud Development Kit (CDK).

Enclosing any code with backticks would be a plus, but not really necessary.

System details (run AWS: About and/or Amazon Q: About)

  • OS: macOS 14.4.1 (23E224)
  • Visual Studio Code version: 1.89.1 (Universal)
  • AWS Toolkit version: N/A
  • Amazon Q version: v1.4.0

aerle avatar May 14 '24 19:05 aerle