MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onDirectoryChanged

Method onDirectoryChanged

tools/xsbug/CodeView.js:239–254  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

237 code.focus();
238 }
239 onDirectoryChanged(code) {
240 let data = this.data;
241 let path = data.path;
242 let info = system.getFileInfo(path);
243 if (info) {
244 if (this.info.date == info.date)
245 return;
246 this.info = info;
247 this.onStateChanging(code);
248 this.onFileChanged(code)
249 this.onStateChanged(code, data.state);
250 }
251 else {
252 model.doCloseFile();
253 }
254 }
255 onFileChanged(code) {
256 var path = this.data.path;
257 code.stop();

Callers 1

onDisplayingMethod · 0.95

Calls 4

onStateChangingMethod · 0.95
onFileChangedMethod · 0.95
onStateChangedMethod · 0.95
doCloseFileMethod · 0.80

Tested by

no test coverage detected