vscode-diff icon indicating copy to clipboard operation
vscode-diff copied to clipboard

Output diffs in git unified format?

Open phoneticallySAARTHaK opened this issue 9 months ago • 1 comments

Hey, thanks for this package!

I wanted to use the diff2html library, using this package to create diffs. But looks like that library doesn't support the json format. Is it possible to convert json format into the unified format?

phoneticallySAARTHaK avatar Apr 05 '25 17:04 phoneticallySAARTHaK

Sorry for not responding for so long.

But looks like that library doesn't support the json format.

No doesnt look like it. I would be surprised if the output of vscode-diff adheared to any standard. This is an internal API in vscode source, so the format is internal also.

Is it possible to convert json format into the unified format?

I dont see why not. I like the idea of vscode-diff having different output format "adapters" for the DiffComputer. It could be something that lives on-top of the code we extract from vscode.

I'm keeping this issue open without any particular time-plan. I would be happy for contributions from anyone who needs this.

micnil avatar Nov 17 '25 12:11 micnil