How to programmatically check if a given configuration is being run in the run manager
I'm trying to programmatically query whether a given configuration is being currently run in the IntelliJ IDEA Community Edition. This is through the actionPerformed() method of an action class in a plugin that I'm working on developing. How could I query the necessary information to determine whether a given java application configuration is being run?
Please sign in to leave a comment.
For context, if the given application has "single instance only checked" I don't want to run the plugin if another instance is being run.
It's not a part of public API but at least it's part of "community" code, so you can try this:
ExecutionManagerImpl.getRunningDescriptors()