Skip to content

Commit 814b062

Browse files
committed
Revert "Add support for basic scaling of horizontal gaps"
This reverts commit 0943911. This was an accidental commit.
1 parent 0943911 commit 814b062

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

demo/demo.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import {EditorView, basicSetup} from "codemirror"
2+
import {javascript} from "@codemirror/lang-javascript"
23

3-
let doc = ""
4-
for (let i = 0; i <= 1245526; i++) doc += String.fromCharCode("a".charCodeAt(0) + Math.floor(Math.random() * 26))
5-
6-
let view = (window as any).view = new EditorView({
7-
doc,
8-
extensions: basicSetup,
4+
;(window as any).view = new EditorView({
5+
doc: 'console.log("Hello world")',
6+
extensions: [
7+
basicSetup,
8+
javascript(),
9+
],
910
parent: document.body
1011
})
11-
12-
console.log("---")
13-
view.dispatch({selection: {anchor: view.state.doc.length}, scrollIntoView: true})

0 commit comments

Comments
 (0)