MCPcopy
hub / github.com/witheve/Eve / constructor

Method constructor

src/ide.ts:746–756  ·  view source on GitHub ↗
(public ide:IDE)

Source from the content-addressed store, hash-verified

744 protected showFormatBar = false;
745
746 constructor(public ide:IDE) {
747 this.cm = CodeMirror(() => undefined, this.defaults);
748 this.cm.editor = this;
749 this.cm.on("beforeChange", (editor, rawChange) => this.onBeforeChange(rawChange));
750 this.cm.on("change", (editor, rawChange) => this.onChange(rawChange));
751 this.cm.on("changes", (editor, rawChanges) => this.onChanges(rawChanges));
752 this.cm.on("cursorActivity", this.onCursorActivity);
753 this.cm.on("scroll", this.onScroll);
754
755 this.newBlockBar = {editor: this, active: false};
756 }
757
758 reset() {
759 this.history.position = 0;

Callers

nothing calls this directly

Calls 4

CodeMirrorFunction · 0.85
onMethod · 0.80
onBeforeChangeMethod · 0.65
onChangeMethod · 0.65

Tested by

no test coverage detected