How to open a file through terminal

any command I can run in the Theia terminal to open a file?

saw this theia-open but could not figure out the THEIA_OPEN_EDITOR_TOKEN

any information is appreciate. thanks!

@huanxu4 thank you for the discussion, at the moment there is no command contributed by the framework to open a file, so there are two approaches you can take (

  • find an existing extension that contributes the feature (perhaps like you’ve mentioned - if you have trouble with the extension, you might want to open an issue in the corresponding repository to ask the author.
  • implement the feature yourself perhaps as a custom @theia extension