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

feat(amazonq): Chat Project Context With LSP #5271

Closed leigaol closed 2 months ago

leigaol commented 2 months ago

Problem

Amazon Q chat is not aware of files opened in user's workspace. User should be able to ask Q any question regarding current open workspace.

Solution

By performing local indexing with CodeSage model in LSP, we will retrieve the most relevant files for user chat input, and utilize that input to enhance Q chat experience when user asks Q any question regarding current open workspace.

Scopes:

  1. Download and installation of LSP server, follow DEXP download manifest. We enforce the LSP version in the IDE so that when we release new LSP, there is no production impact. A new extension is required to run new LSP.
  2. Start the LSP server with the stdin encryption spec from DEXP.
  3. Call the LSP server to index project,
  4. Call the LSP server to retrieve project context
  5. New settings for the LSP server. Enable/Disable, Threads, Use GPU or not.
  6. New metrics.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

justinmk3 commented 2 months ago

were the comments in https://github.com/aws/aws-toolkit-vscode-staging/pull/1621 addressed?

leigaol commented 2 months ago

were the comments in aws/aws-toolkit-vscode-staging#1621 addressed?

That temp url is still pending. Asked DEXP for this