sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.27k stars 214 forks source link

Edit: Explore using decorations to show diff output, without requiring “Show diff” #3511

Open umpox opened 3 months ago

umpox commented 3 months ago

What:

How:

philipp-spiess commented 3 months ago

Can we inject empty lines and do a line-level diff to do this? When we clear the decorations we can remove these lines.

Would be cool to explore this for sure, my worry is that this messes too much with the undo stack but maybe we can work around this?

sqs commented 2 months ago

I like how our JetBrains extension shows it (from https://www.loom.com/share/c49dd1f60dcf406a91ddcd3947fc94bf):

image

Even just showing the lines that were added/changed in green would be a nice win.