Skip to content

Allow the Ace keybinding and theme to be stale when changing it - #1266

Open
shepmaster wants to merge 2 commits into
mainfrom
leave-me-in-suspense
Open

Allow the Ace keybinding and theme to be stale when changing it#1266
shepmaster wants to merge 2 commits into
mainfrom
leave-me-in-suspense

Conversation

@shepmaster

Copy link
Copy Markdown
Member

No description provided.

@shepmaster shepmaster added the bug The playground isn't doing what it was intended to label Aug 6, 2026
This also prevents the editor from unmounting and remounting when the
theme/keybinding change, which is a bit nicer from the user's point of
view.

Mainly I'm doing this to work around an issue where the Ace tokenizer
is still running even after `this.doc` has been set to `null` when the
editor is destroyed, which results in an error in this code when
changing the theme:

```js
BackgroundTokenizer.prototype.$tokenizeRow = function (row) {
    var line = this.doc.getLine(row);
```
@shepmaster
shepmaster force-pushed the leave-me-in-suspense branch from 1609bf3 to 3ff2f9d Compare August 7, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug The playground isn't doing what it was intended to

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant