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

Add CLI support #163

Open beycom opened 5 days ago

beycom commented 5 days ago

Form CompareFolders...

CLI By calling the following command from the terminal / command line, the extension will be calling on vscode load and show the differences view COMPARE_FOLDERS=DIFF code path/to/folder1 path/to/folder2

Very useful to have as an option to compare from command line.

L13 commented 3 days ago

Hi, someone asked about this before and I voted down the idea. VS Code does not support calling an extension from the command line. So it's a hack. If you find it useful, you can write an extension that does exactly the same thing on startup and then you can call any extension command from another extension. I will not change "activationEvents" because that means unnecessary load on startup.