MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / schedulePluginUpdate

Function schedulePluginUpdate

utils/scripts/dev.js:419–429  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

417}
418
419function schedulePluginUpdate(filePath) {
420 // Extract top-level plugin dir name from path
421 const relative = path.relative(PLUGINS, filePath);
422 const pluginDir = relative.split(path.sep)[0];
423 if (!pluginDir || pluginDir === "tsconfig.tsbuildinfo") return;
424
425 pluginUpdates.add(pluginDir);
426
427 if (pluginUpdateTimer) clearTimeout(pluginUpdateTimer);
428 pluginUpdateTimer = setTimeout(applyPluginUpdates, 2000);
429}
430
431async function applyPluginUpdates() {
432 if (pluginUpdates.size === 0) return;

Callers 1

startPluginWatcherFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected