Skip to content

Commit 07aaee2

Browse files
Pass autocompleteBraces setting to source editor
Reads the autocompleteBraces setting via @appsettings and passes it to the SourceEditorConfiguration's behavior, enabling the setting to actually control whether brackets are auto-completed in the editor. Requires corresponding change in CodeEditSourceEditor. Fixes #1691
1 parent cec6287 commit 07aaee2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CodeEdit/Features/Editor/Views/CodeFileView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ struct CodeFileView: View {
2525

2626
@AppSettings(\.textEditing.defaultTabWidth)
2727
var defaultTabWidth
28+
@AppSettings(\.textEditing.autocompleteBraces)
29+
var autocompleteBraces
2830
@AppSettings(\.textEditing.indentOption)
2931
var indentOption
3032
@AppSettings(\.textEditing.lineHeightMultiple)
@@ -131,6 +133,7 @@ struct CodeFileView: View {
131133
),
132134
behavior: .init(
133135
isEditable: isEditable,
136+
autocompleteBraces: autocompleteBraces,
134137
indentOption: indentOption.textViewOption(),
135138
reformatAtColumn: reformatAtColumn
136139
),

0 commit comments

Comments
 (0)