2025-04-10 02:03:56 +07:00
|
|
|
import { byProps } from '../finders/filters'
|
2025-05-09 19:05:31 +07:00
|
|
|
import { waitForModules } from '../finders/wait'
|
2025-06-03 16:24:58 +07:00
|
|
|
import { _initing, _paths } from './_internal'
|
|
|
|
|
import { _execPathSubs } from './subscriptions/_internal'
|
2025-05-09 19:05:31 +07:00
|
|
|
|
2025-05-18 22:24:48 +07:00
|
|
|
const unsubFFI = waitForModules(byProps('fileFinishedImporting'), exports => {
|
2025-05-09 19:05:31 +07:00
|
|
|
unsubFFI()
|
2025-03-30 23:32:17 +07:00
|
|
|
|
|
|
|
|
const orig = exports.fileFinishedImporting
|
2025-05-09 19:05:31 +07:00
|
|
|
exports.fileFinishedImporting = (path: string) => {
|
|
|
|
|
orig(path)
|
2025-06-07 15:14:37 +07:00
|
|
|
const id = _initing!
|
2025-05-09 19:05:31 +07:00
|
|
|
_paths.set(path, id)
|
|
|
|
|
_execPathSubs(id, path)
|
2025-03-30 23:32:17 +07:00
|
|
|
}
|
|
|
|
|
})
|