diff --git a/demos/tree-sitter/codemirror.md b/demos/tree-sitter/codemirror.md index ed533f1a5..0576a1d0c 100644 --- a/demos/tree-sitter/codemirror.md +++ b/demos/tree-sitter/codemirror.md @@ -7,7 +7,7 @@ - [X] hide line numbers - [X] hide scrollbars - [ ] update RegExp match while editing - +- [ ] Stefan's hide indentation/whitespace issue in shards ## Probe Example diff --git a/src/components/widgets/lively-code-mirror.js b/src/components/widgets/lively-code-mirror.js index b6e8f6529..468255a7d 100644 --- a/src/components/widgets/lively-code-mirror.js +++ b/src/components/widgets/lively-code-mirror.js @@ -291,7 +291,7 @@ export default class LivelyCodeMirror extends HTMLElement { // editor.setOption("showTrailingSpace", true) // editor.setOption("matchTags", true) - );editor.on("change", evt => this.dispatchEvent(new CustomEvent("change", { detail: evt }))); + );editor.on("change", (doc, evt) => this.dispatchEvent(new CustomEvent("change", { detail: evt }))); editor.on("change", (() => this.checkSyntax()).debounce(500)); editor.on("change", (() => this.astCapabilities.codeChanged()).debounce(200));