MCPcopy Index your code
hub / github.com/nodejs/node / scheduleProgramUpdate

Function scheduleProgramUpdate

test/fixtures/snapshot/typescript.js:123718–123727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123716 // operations (such as saving all modified files in an editor) a chance to complete before we kick
123717 // off a new compilation.
123718 function scheduleProgramUpdate() {
123719 if (!host.setTimeout || !host.clearTimeout) {
123720 return;
123721 }
123722 if (timerToUpdateProgram) {
123723 host.clearTimeout(timerToUpdateProgram);
123724 }
123725 writeLog("Scheduling update");
123726 timerToUpdateProgram = host.setTimeout(updateProgramWithWatchStatus, 250);
123727 }
123728 function scheduleProgramReload() {
123729 ts.Debug.assert(!!configFileName);
123730 reloadLevel = ts.ConfigFileProgramReloadLevel.Full;

Callers 9

updateRootFileNamesFunction · 0.85
scheduleProgramReloadFunction · 0.85
onSourceFileChangeFunction · 0.85
onPackageJsonChangeFunction · 0.85
onMissingFileChangeFunction · 0.85
watchWildcardDirectoryFunction · 0.85
watchReferencedProjectFunction · 0.85

Calls 1

setTimeoutMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…