(filePath: string)
| 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 |
no test coverage detected