aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.45k stars 377 forks source link

How can I get Amazon Q response list or data from the output panel #4126

Open chenxuanzzy opened 8 months ago

chenxuanzzy commented 8 months ago

System details (run the AWS: About Toolkit command)

OS: Darwin arm64 22.6.0 Visual Studio Code extension host: 1.84.2 AWS Toolkit: 2.1.0 node: 18.15.0 electron: 25.9.2

Question

I have been using codewhisperer while, but every time I get the response, I need to copy it on the chat, I also use AWS Toolkit Logs but can't find the response data/list, just got the question data. How can I get the response data on the output panel or something like that?

justinmk3 commented 8 months ago

Are you trying to copy the response in Amazon Q chat? Can you clarify the steps you are trying?

chenxuanzzy commented 8 months ago

Are you trying to copy the response in Amazon Q chat? Can you clarify the steps you are trying?

I'm sorry for my explanation. I was trying to ask Amazon Q on the chat, and I also can see the AWS Toolkit Logs on the panel. In the panel, I just can only find the asking object

2023-12-06 14:39:39 [INFO]: request from tab: tab-1 coversationID: undefined request: {"conversationState":{"currentMessage":{"userInputMessage":{"content":"give me some eample code","userInputMessageContext":{"editorState":{"document":{"relativeFilePath":"/Users/cindy_chao/Develop/test/test2.ts","text":"import * as http from \"http\";\n","programmingLanguage":{"languageName":"typescript"},"documentSymbols":[]},"cursorState":{"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":0}}}}}}},"chatTriggerType":"MANUAL"}}

can't find the response object or other data. how can get the response log data? or where can I get the response logfile? I can't find it out.

image

@justinmk3 thank you

chenxuanzzy commented 8 months ago

I also found a misspelling, but it doesn't affect anything.

image

on the controller.ts

it might be conversionID image

chenxuanzzy commented 8 months ago

@justinmk3 I'm sorry. Can anyone respond to me :( ?

justinmk3 commented 8 months ago

@chenxuanzzy I'm having trouble understanding your request. In the screenshot, there is a "Copy" button which allows you to copy the answer. But I guess that isn't what you're asking for.

chenxuanzzy commented 8 months ago
  • Are you trying to inspect the raw service response? Do you want AWS Toolkit to print more data in its logs?

Yes, This is what I want. I want AWS Toolkit logs have answers other json I can watch.

justinmk3 commented 8 months ago

Did you try setting the AWS Toolkit log level to "debug"? In VSCode settings look for "aws log". image

Related: https://github.com/aws/aws-toolkit-jetbrains/issues/4064