Hi,
I have a plugin that’s compatible with all IDEs, but I need to add some code just for Rider.
Context: I need to open projects programmatically (basically, I have a Favorite Projects manager). I do that via ProjectManager.getInstance().loadAndOpenProject(projectPath). It works on all IDEs, except in Rider. I opened RIDER-139440, but I need a (temporary) workaround asap. I found how Rider actually opens projects, and it’s using APIs that are specific to Rider.
So, I will add some optional code just for this IDE.
Let’s say I’m using the official intellij-platform-plugin-template. I support 251+ IDEs, but I can change it if needed. I don’t support the split mode for now.
I know what to do in plugin.xml: something like <depends optional="true" config-file="plugin-rider.xml">com.intellij.modules.rider</depends>.
→ I would need some advice for my build.gradle.kts. I could build against Rider (intellijPlatform { create("RD", ...)}), but I would like to continue to work with IJ.
I think a solution would be to create a gradle module for Rider.
I’d like to know your opinion before moving forward. Thx.