MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isJetBrainsPluginInstalled

Function isJetBrainsPluginInstalled

src/utils/jetbrains.ts:134–148  ·  view source on GitHub ↗
(
  ideType: IdeType,
)

Source from the content-addressed store, hash-verified

132}
133
134export async function isJetBrainsPluginInstalled(
135 ideType: IdeType,
136): Promise<boolean> {
137 const pluginDirs = await detectPluginDirectories(ideType)
138 for (const dir of pluginDirs) {
139 const pluginPath = join(dir, PLUGIN_PREFIX)
140 try {
141 await getFsImplementation().stat(pluginPath)
142 return true
143 } catch {
144 // Plugin not found in this directory, continue
145 }
146 }
147 return false
148}
149
150const pluginInstalledCache = new Map<IdeType, boolean>()
151const pluginInstalledPromiseCache = new Map<IdeType, Promise<boolean>>()

Callers 1

Calls 2

detectPluginDirectoriesFunction · 0.85
getFsImplementationFunction · 0.85

Tested by

no test coverage detected