(public ide:IDE)
| 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; |
nothing calls this directly
no test coverage detected