rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
579 stars 70 forks source link

Doesn't use any local file context? #98

Closed alexkreidler closed 1 year ago

alexkreidler commented 1 year ago

Describe the bug

I asked it to "Add a bench command to this CLI", but it returned code using argparse not typer which the current file I'm editing was using.

How to reproduce

Ask a question that needs knowledge from the open file

Expected behavior

It should use the open file or more files in the repo as context to answer the question/generate code.

Additional information

lgrammel commented 1 year ago

You can control the context that you pass into rubberduck by selecting the text.