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

Method onDisplaying

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

Source from the content-addressed store, hash-verified

226 };
227 }
228 onDisplaying(code) {
229 let lines = this.data.LINES;
230 lines.behavior.onLineHeightChanged(lines, code.lineHeight);
231 let data = this.data;
232 let path = data.path;
233 this.onFileChanged(code);
234 this.onStateChanged(code, data.state);
235 this.info = system.getFileInfo(path);
236 this.notifier = new system.DirectoryNotifier(system.getPathDirectory(path), it => this.onDirectoryChanged(code));
237 code.focus();
238 }
239 onDirectoryChanged(code) {
240 let data = this.data;
241 let path = data.path;

Callers

nothing calls this directly

Calls 5

onFileChangedMethod · 0.95
onStateChangedMethod · 0.95
onDirectoryChangedMethod · 0.95
onLineHeightChangedMethod · 0.80
focusMethod · 0.80

Tested by

no test coverage detected