L13 / vscode-diff

Compare two folders in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=L13RARY.l13-diff
Other
90 stars 10 forks source link

feature: show line diff summary #107

Closed unional closed 3 years ago

unional commented 3 years ago

Hi,

Thank you for creating this extension. It is very useful.

I want to see if it is possible to show the summary of total line differences between the two folders.

Like how many lines are added, modified, or deleted.

L13 commented 3 years ago

Hi and thank you very much.

The extension does not compare lines or strings. It compares just buffers. So I don't know what has changed. Adding this feature will slow down the comparison massively and the compare algorithm had to be completely rewritten.

Maybe you can tell me the reason for that feature suggestion. If you double click the diff in the list view the VS Code Diff Editor opens and you can see what has changed. The info just about how many lines have changed is not really useful in my opinion.

unional commented 3 years ago

Hi.

I see. The reason for this is to find out over a period of time, how much code has changed. It is useful to see how many lines of code have changed without going into each file individually.

If the extension is not looking at the content to begin with, I don't think it make sense to change.

I'll try to find a solution. Maybe git diff can do something like that.

Thanks! 🌷