MCPcopy Create free account
hub / github.com/codesandbox/codesandbox-client / triggerFileWatch

Function triggerFileWatch

packages/sandpack-core/src/manager.ts:130–137  ·  view source on GitHub ↗
(path: string, type: 'rename' | 'change')

Source from the content-addressed store, hash-verified

128};
129
130function triggerFileWatch(path: string, type: 'rename' | 'change') {
131 try {
132 // @ts-ignore
133 fs.getFSModule().fileWatcher.triggerWatch(path, type);
134 } catch (e) {
135 /* ignore */
136 }
137}
138
139async function fetchRemoteModule(url: string): Promise<IRemoteModuleResult> {
140 try {

Callers 3

addModuleMethod · 0.85
removeModuleMethod · 0.85
updateModuleMethod · 0.85

Calls 2

triggerWatchMethod · 0.80
getFSModuleMethod · 0.80

Tested by

no test coverage detected