Regarding this:
How could we leverage something close to:
PropertiesComponent.getInstance(ProjectManager.getInstance().openProjects[0]).getValue("a.property.we.want.to.lookup.at.that.moment")
Regarding this:
How could we leverage something close to:
PropertiesComponent.getInstance(ProjectManager.getInstance().openProjects[0]).getValue("a.property.we.want.to.lookup.at.that.moment")
ApplicationInitializedListener
is quite delicate API. Are you sure you need it for your task?
PropertiesComponent
could read it at the moment?We usually use com.intellij.openapi.startup.ProjectActivity
for such tasks. It lives from the project opening and can subscribe to project close event.
But that requires a Project to be opened.
So someone opening the Application and landing on the “select a Project” to open would not end up having emitted the “Application opened” event to our telemetry, right?
Perhaps you are looking for AppLifecycleListener
?
AppLifecycleListener.welcomeScreenDisplayed
should be an additional entry point.
BTW is also very suspicious that the plugin needs such application-wide telemetry.
Is AppLifecycleListener
now supported on Gateway ?
We maintain our plugins for both local and remote experience.