Skip to content

installedPluginIds

installedPluginIds(read?): Promise<string[]>

Defined in: src/service.ts:176

Memoized readInstalledPluginIds: plugins change ~never, so one read per process lifetime — a server restart picks up changes. Only SUCCESSFUL reads are cached: on null (transient read/parse error) the cache is cleared inside the chained promise, so in-flight awaiters of this attempt all get [] (the spawn proceeds without plugin-disable this once) while the next NEW caller retries instead of the error poisoning the trim for the process lifetime. Exported for tests; read is the same test seam as readInstalledPluginIds.

(path) => Promise<string>

Promise<string[]>