Allow "Run" on modules and files in Project view
Opened this issue · 4 comments
It would be nice to have the ability to select "Run" (and Debug etc) when right clicking on a module or source file in the Project view. When there are multiple options we could open a dialog like we do in Eclipse.
This is so people don't have to hunt around in the code to find the runnable methods.
Btw: there is a config file setting called runtool.module
that a developer can use to set the default module to run for an entire project (so you can execute ceylon run
in the root of the project and it will run that module). There are also specific ones for each backend: runtool.jvm.module
and runtool.js.module
. Perhaps we could use those settings in some way?
there is a config file setting called runtool.module that a developer can use to set the default module to run for an entire project
😮
I think we should use that setting:
- to create run configurations automatically when the project is imported
- and to persist the "main" run config (there would be some kind of checkbox in the UI to define a run config as the "main" config).
Ok, good, because there are also accompanying runtool.run
and runtool.arg
settings (where the latter can occur multiple times) so we can actually persist all the necessary information
That's a hidden feature, it's not even documented in https://ceylon-lang.org/documentation/1.3/reference/tool/config/#_runtool_section ;)
It's very new :)