mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 20:14:57 +08:00
Highlight matching brackets only in insert mode (#421)
This commit is contained in:
parent
931520d27d
commit
b92afcef8e
1 changed files with 5 additions and 0 deletions
|
@ -39,7 +39,12 @@ class LiveEditor {
|
|||
this._onChange && this._onChange(this.source);
|
||||
});
|
||||
|
||||
this.editor.onDidFocusEditorWidget(() => {
|
||||
this.editor.updateOptions({ matchBrackets: "always" });
|
||||
});
|
||||
|
||||
this.editor.onDidBlurEditorWidget(() => {
|
||||
this.editor.updateOptions({ matchBrackets: "never" });
|
||||
this._onBlur && this._onBlur();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue