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
18.4k stars 1.51k forks source link

Ability to select Default Context in Chat #1093

Open Rockstage opened 6 months ago

Rockstage commented 6 months ago

Validations

Problem

Right now we have to select a context from the dropdown with nearly every message in order for the changes in the current file to be reflected in the prompt.

Co-pilot (altho limited), solves this issue quite elegantly by passing the current file with every chat prompt.

Solution

I believe the ability to set a default contextProvider for the chat, that can easily be overwritten, could greatly improve UX. If no context is selected from the dropdown, it falls back to the default, defined in the config.

{ "name": "open", "params": {}, "default": true },

Thanks for the incredible tool!

sestinj commented 6 months ago

@Rockstage Love this idea! Definitely something we can do

telemakhos commented 4 months ago

Hi any update with this? agree with the OP, there should be some option(s) to set default context. Having the extension to load the current active file by default once the user hits "Enter" (like in Cursor) would be ideal.

Screenshot 2024-06-22 at 20 01 06

This is a massive UX trick to reduce friction and stay in flow. Having to add context every single time is kind of tiresome.

Just adding the current file would be already a massive win, but I'd suggest giving the user several default options:

sestinj commented 3 weeks ago

A few updates on this: