Hello,
I’m trying to use Visaul Studio Code as my Diff/Merge tool and I’m running into some issues regarding the arguments. I am currently running: Unity 2020.3.14f1
Right now, I go to Edit > Preferences > External Tools and change the Revision Control Diff/Merge setting to Custom Tool.
I then proceed to browse to the location of my visual studio code installation: F:/Programs/Microsoft VS Code/Code.exe
Here is where the issue occurs. Awhile back, I had found that if I put #LEFT and #RIGHT as the arguments, Unity would replace them with the respective files. So in the field: Two-way diff command line I would simply fill in: -d #LEFT #RIGHT
By doing so, I would click the View Diff button in Unity Collaborate and it would compare both files side-by-side (this feature is built-in to vscode).
My issue is that this no longer works. VSCode just opens up a new window but there is no files being compared like before. I’m not sure if the argument names have changed but anything I have tried did not work.
I have been using this: Unity - Manual: Smart merge
and this: Unity - Scripting API: EditorUtility.SetCustomDiffTool
As my references for what parameters to use.
Here is an image of the configuration that no longer works: