mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
Don't make TextEditor
instances render synchronously…
…because we don't need it for our use case. Helps performance.
This commit is contained in:
parent
18e0da8baa
commit
b46a7e8e86
@ -322,7 +322,6 @@ function highlightCodeBlocks(element, grammar, cache, editorCallback) {
|
||||
if (!editor) {
|
||||
editor = new TextEditor({ keyboardInputEnabled: false })
|
||||
editorElement = editor.getElement()
|
||||
editorElement.setUpdatedSynchronously(true)
|
||||
editor.setReadOnly(true)
|
||||
cache?.addEditor(preElement, editor)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user