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.47k stars 408 forks source link

Codewhisperer Reference log doesn't show references #3624

Closed lsutton00 closed 1 year ago

lsutton00 commented 1 year ago

CodeWhisperer reference log doesn't show the references

Steps to reproduce the issue

Enable Codewhisperer, Open code reference log Type some code and get a suggestion See no references image

Expected behavior

See references when getting suggestions

System details (run the AWS: About Toolkit command)

andrewyuq commented 1 year ago

Hi, this is working as expected. Only when a code has a reference(roughly 1% of all time), it will show references in this log.

srinz9 commented 1 year ago

The CodeWhisperer reference tracker detects whether a code suggestion might be similar to particular CodeWhisperer open-source training data. The reference tracker can flag such suggestions with a repository URL and project license information or optionally filter them out. You can then more easily find and review the referenced code and see how it is used in the context of another project, before deciding to use it. All references are logged for you to review later to ensure that your code flow is not disturbed, and you can keep coding without interruption.

https://aws.amazon.com/codewhisperer/faqs/