MCPcopy Create free account
hub / github.com/codeHappyDananx/SpecWave / scheduleCurrentFileReload

Function scheduleCurrentFileReload

src/stores/project.ts:343–351  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

341 }
342
343 function scheduleCurrentFileReload(filePath: string) {
344 if (currentFileReloadTimer !== null) {
345 window.clearTimeout(currentFileReloadTimer)
346 }
347 currentFileReloadTimer = window.setTimeout(() => {
348 currentFileReloadTimer = null
349 void loadFile(filePath, { silent: true })
350 }, 160)
351 }
352
353 function toProjectRelativePath(filePath: string): string | null {
354 if (!filePath || !projectPath.value) return null

Callers 1

ensureFileChangeListenerFunction · 0.85

Calls 1

loadFileFunction · 0.85

Tested by

no test coverage detected