continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.3k stars 1.67k forks source link

Selecting folder does not select all its files #2590

Open robertpiosik opened 4 weeks ago

robertpiosik commented 4 weeks ago

Before submitting your bug report

Relevant environment info

- OS:
- Continue version:
- IDE version:
- Model:
- config.json:

Description

Choosing a folder should select all its files. From my testing all but the most important tsx component file were selected.

To reproduce

No response

Log output

No response

RomneyDa commented 2 weeks ago

Hi @robertpiosik, @folder tries to get the top most relevant files. Is the issue that it's not adding every single file to the context? Or is it that it should add the relevant tsx file but it's not?

robertpiosik commented 2 weeks ago

Hi, both.

I expect it to add all files from a given folder, including subfolders and excluding specific types of files, defined somewhere, like images. I can't imagine a reliable algo to estimate what is relevant and what is not.

robertpiosik commented 2 weeks ago

Let's say you're developing a react component and have a few hooks. Your query is about something else but it is good for LLM to know about your other hooks to nicely follow your conventions. It can deduce for what kind of stuff you use separate hooks and for what not.