sourcegraph / sourcegraph-public-snapshot

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

Not to include deleted lines when selecting code in commit diff view. #45598

Open rakeshjosh2003 opened 1 year ago

rakeshjosh2003 commented 1 year ago

Feedback

Currently, when code is highlighted while selecting the lines in a multi-line code diff where a line is deleted, on selecting/copying, it copies the extra text with deleted line.

https://user-images.githubusercontent.com/102702631/207221179-071168d9-63ef-4d99-bfbc-0082d1ccf17f.mov

Attaching a short video for reference.

Customer

https://sourcegraph2020.lightning.force.com/lightning/r/Account/0013t00001XibW6AAJ/view

/cc @felixfbecker

rakeshjosh2003 commented 1 year ago

Also in the unified view, it shows "deleted lines" and "added lines" when the code is copied. Attaching the video for reference.

https://user-images.githubusercontent.com/102702631/207254539-a9bb7bdd-d84c-4570-881d-d90a66ffc99c.mov