File tree Expand file tree Collapse file tree
Core/Sources/HostApp/FeatureSettings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ struct SuggestionSettingsView: View {
2828 var suggestionDisplayCompactMode
2929 @AppStorage ( \. acceptSuggestionWithTab)
3030 var acceptSuggestionWithTab
31+ @AppStorage ( \. isSuggestionSenseEnabled)
32+ var isSuggestionSenseEnabled
3133 init ( ) { }
3234 }
3335
@@ -67,6 +69,14 @@ struct SuggestionSettingsView: View {
6769 Text ( " Real-time Suggestion " )
6870 }
6971
72+ #if canImport(ProHostApp)
73+ WithFeatureEnabled ( \. suggestionSense) {
74+ Toggle ( isOn: $settings. isSuggestionSenseEnabled) {
75+ Text ( " Suggestion Sense " )
76+ }
77+ }
78+ #endif
79+
7080 #if canImport(ProHostApp)
7181 WithFeatureEnabled ( \. tabToAcceptSuggestion) {
7282 Toggle ( isOn: $settings. acceptSuggestionWithTab) {
Original file line number Diff line number Diff line change @@ -325,6 +325,10 @@ public extension UserDefaultPreferenceKeys {
325325 var acceptSuggestionWithTab : PreferenceKey < Bool > {
326326 . init( defaultValue: true , key: " AcceptSuggestionWithTab " )
327327 }
328+
329+ var isSuggestionSenseEnabled : PreferenceKey < Bool > {
330+ . init( defaultValue: false , key: " IsSuggestionSenseEnabled " )
331+ }
328332}
329333
330334// MARK: - Chat
You can’t perform that action at this time.
0 commit comments