Commit e2909f9
committed
Add autocompleteBraces behavior setting
Adds a new 'autocompleteBraces' option to the Behavior configuration that
controls whether opening brackets automatically insert their closing pair.
When disabled, typing '{' will only insert '{' without the automatic '}'.
This enables downstream editors like CodeEdit to respect user preferences
for bracket auto-completion.
Changes:
- Add autocompleteBraces property to Behavior struct (default: true)
- Conditionally set up OpenPairFilter and DeletePairFilter based on setting
- Trigger setUpTextFormation when setting changes1 parent 1fa4d3c commit e2909f9
File tree
2 files changed
+14
-4
lines changed- Sources/CodeEditSourceEditor
- Controller
- SourceEditorConfiguration
2 files changed
+14
-4
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | | - | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | | - | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
0 commit comments