continue icon indicating copy to clipboard operation
continue copied to clipboard

@files should be implemented like the rest of the built-in context providers

Open TyDunn opened this issue 1 year ago • 2 comments

Before submitting your bug report

Relevant environment info

- OS: MacOS
- Continue: Latest (Pre-release)
- IDE: VS Code

Description

@files is not implemented like the rest of the built-in context providers

It should have an @file property that you add to the contextProviders list

There should also be a mention of it under the Context Provider docs

We should also rename @files to @file, since you are only adding one file at a time and 2) it should match the config property

Finally, we should show recently opened files (up to last 8 or fill in any additional files if less than 8 have been opened) (note: look in getSuggestion.ts for this)

To reproduce

  1. Open VS Code with an empty contextProviders list
  2. See that @files always shows up
  3. See that it's not @file
  4. See that only recently opened files show up (instead of the full up to 8 possibilities)
  5. See that there is not mention of it in the docs

Log output

No response

TyDunn avatar Apr 04 '24 01:04 TyDunn

I would like to contribute to this as my first issue. Would you please mind assigning it to me so I can look into it? @TyDunn

Saumyanavani avatar May 14 '24 02:05 Saumyanavani

@Saumyanavani just assigned! Let me know if I can help you get going at all. I think there are 3 distinct directions here:

  1. Updating the context-providers docs page
  2. Not automatically injecting the "files" context provider here, but instead adding it to the default lists here, and preferably some kind of migration (like we used to do here, adding it to config.json if the user doesn't already have it then they don't lose the files context provider)
  3. ~~Show more possibilities in the dropdown beyond just open files (I believe this was recently solved)~~

sestinj avatar May 14 '24 16:05 sestinj