eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.98k stars 2.5k forks source link

Support for passing a filename to CLI #11255

Open kenneth-marut-work opened 2 years ago

kenneth-marut-work commented 2 years ago

Feature Description:

With VSCode you can do something like code myfile.txt to open a file from the terminal into VSCode. Similarly, if you run code myfile.txt from an integrated terminal inside VSCode, it will open that file in an editor in the same instance. Would be great to have this behavior inside Theia. This would also allow us to set the git global config core.editor to Theia for users that like to edit commit messages etc. inside the IDE.

msujew commented 2 years ago

@kenneth-marut-work I believe this could be related to https://github.com/eclipse-theia/theia/issues/10890, since using the single instance lock will automatically pass the arguments to the existing Theia instance, were we can handle those appropriately.