




















@@ -5,7 +5,6 @@ import { isBlockedObjectKey } from "../infra/prototype-keys.js";
55import { safeParseWithSchema } from "../utils/zod-parse.js";
66import { resolveCompatibilityHostVersion } from "../version.js";
77import { normalizePluginsConfig, resolveEffectiveEnableState } from "./config-state.js";
8-import { clearCurrentPluginMetadataSnapshotState } from "./current-plugin-metadata-state.js";
98import { isPluginEnabledByDefaultForPlatform } from "./default-enablement.js";
109import { hashJson } from "./installed-plugin-index-hash.js";
1110import { resolveCompatRegistryVersion } from "./installed-plugin-index-policy.js";
@@ -29,6 +28,7 @@ import {
2928type LoadInstalledPluginIndexParams,
3029type RefreshInstalledPluginIndexParams,
3130} from "./installed-plugin-index.js";
31+import { clearPluginMetadataLifecycleCaches } from "./plugin-metadata-lifecycle.js";
3232export {
3333resolveInstalledPluginIndexStorePath,
3434type InstalledPluginIndexStoreOptions,
@@ -187,7 +187,7 @@ export async function writePersistedInstalledPluginIndex(
187187mode: 0o600,
188188},
189189);
190-clearCurrentPluginMetadataSnapshotState();
190+clearPluginMetadataLifecycleCaches();
191191clearLoadInstalledPluginIndexInstallRecordsCache();
192192return filePath;
193193}
@@ -198,7 +198,7 @@ export function writePersistedInstalledPluginIndexSync(
198198): string {
199199const filePath = resolveInstalledPluginIndexStorePath(options);
200200saveJsonFile(filePath, { ...index, warning: INSTALLED_PLUGIN_INDEX_WARNING });
201-clearCurrentPluginMetadataSnapshotState();
201+clearPluginMetadataLifecycleCaches();
202202clearLoadInstalledPluginIndexInstallRecordsCache();
203203return filePath;
204204}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。