I am issuing this command in my extension:
export async function diffCompare(original: string, current: string) {
await vscode.commands.executeCommand("vscode.diff", vscode.Uri.file(original), vscode.Uri.file(current));
return;
}
however I am finding that it pops up the side by side display of the original file and the current file just fine but it is not waiting for the diff to be closed before proceeding.
I call the function with this:
await diffCompare(originalFile, developmentFile);
const dj = "x";
I admit that I must be doing something wrong but cannot see what that might be. It is dropping immediately into the breakpoint I have set.
Any pointers as to what I am doing wrong would be appreciated.