sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.11k stars 1.29k forks source link

Non-Stop Cody [Design]: Core "apply" experience #51360

Open dominiccooney opened 1 year ago

dominiccooney commented 1 year ago

TL;DR, what is applying a Cody change like?

There's also some peripheral parts... do we nag you when you save a file with pending changes unapplied? etc.

dominiccooney commented 1 year ago

@toolmantim could you consider whether we want a re-apply feature?

toolmantim commented 1 year ago

Reapply could be a button on the CodeLens. Perhaps conditionally shown? Which could just load up a pre-filled quickpick with the previous command, and then you try again. It's more like "Edit & Retry" perhaps?

toolmantim commented 1 year ago

On whether we want it at all… I think if you could use it to iterate on the instruction (i.e. cmd-z a Cody fixup, "Edit and Retry", until you get the result you want… that could be powerful? (The cmd-z/undo part of that process seems a little awkward though, if "tweak this prompt and try again" is a common workflow)