Skip to content

♻️ refactor: use public PluginManager.isPluginInstalled#188

Merged
gaborbernat merged 2 commits into
mainfrom
plugin-installed-public-api
May 29, 2026
Merged

♻️ refactor: use public PluginManager.isPluginInstalled#188
gaborbernat merged 2 commits into
mainfrom
plugin-installed-public-api

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

The plugin-availability check called PluginManagerCore.getPlugin(PluginId), which is @ApiStatus.Internal on 262 and surfaced as an internal-API usage in the verifier report. Unlike the uv/venv SDK flavor, icon, and additional-data APIs (which are internal with no public alternative), this one has a public escape hatch: com.intellij.ide.plugins.PluginManager.isPluginInstalled(PluginId).

Swapping to it keeps the behavior identical. isPluginInstalled reports presence regardless of enablement, and the existing PluginManagerCore.isDisabled guard (which the verifier does not flag as internal) still narrows the result to installed-and-enabled. The check also reads more clearly now that the two plugin IDs share a small helper.

Also bumps the dev version to 2.4.1-dev, superseding the automated #187.

🤖 Generated with Claude Code

PluginManagerCore.getPlugin(PluginId) is @ApiStatus.Internal. The public
PluginManager.isPluginInstalled(PluginId) combined with the existing
isDisabled check is behavior-preserving (installed and enabled), and drops
the one internal-API usage the platform offers a public alternative for.
The uv/venv SDK flavor, icon, and additional-data APIs stay as-is since
they have no public alternative.
@gaborbernat gaborbernat added the enhancement New feature or request label May 29, 2026
@gaborbernat gaborbernat merged commit f852386 into main May 29, 2026
9 checks passed
@gaborbernat gaborbernat deleted the plugin-installed-public-api branch May 29, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant