Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI support #163

Open
beycom opened this issue Nov 9, 2024 · 1 comment
Open

Add CLI support #163

beycom opened this issue Nov 9, 2024 · 1 comment

Comments

@beycom
Copy link

beycom commented Nov 9, 2024

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
Copy link
Owner

L13 commented Nov 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants