File tree Expand file tree Collapse file tree 4 files changed +0
-34
lines changed
Expand file tree Collapse file tree 4 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ struct PromptToCodeSettingsView: View {
66 var hideCommonPrecedingSpacesInSuggestion
77 @AppStorage ( \. suggestionCodeFontSize)
88 var suggestionCodeFontSize
9- @AppStorage ( \. acceptSuggestionWithAccessibilityAPI)
10- var acceptSuggestionWithAccessibilityAPI
119 @AppStorage ( \. promptToCodeGenerateDescription)
1210 var promptToCodeGenerateDescription
1311 @AppStorage ( \. promptToCodeGenerateDescriptionInUserPreferredLanguage)
@@ -57,12 +55,6 @@ struct PromptToCodeSettingsView: View {
5755
5856 Text ( " pt " )
5957 } . disabled ( true )
60-
61- Divider ( )
62-
63- Toggle ( isOn: $settings. acceptSuggestionWithAccessibilityAPI) {
64- Text ( " Use accessibility API to accept suggestion in widget " )
65- } . disabled ( true )
6658 }
6759 }
6860 }
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ struct SuggestionSettingsView: View {
99 var realtimeSuggestionDebounce
1010 @AppStorage ( \. suggestionPresentationMode)
1111 var suggestionPresentationMode
12- @AppStorage ( \. acceptSuggestionWithAccessibilityAPI)
13- var acceptSuggestionWithAccessibilityAPI
1412 @AppStorage ( \. disableSuggestionFeatureGlobally)
1513 var disableSuggestionFeatureGlobally
1614 @AppStorage ( \. suggestionFeatureEnabledProjectList)
@@ -125,16 +123,6 @@ struct SuggestionSettingsView: View {
125123 }
126124 Divider ( )
127125 }
128-
129- Group {
130- Toggle ( isOn: $settings. acceptSuggestionWithAccessibilityAPI) {
131- Text ( " Use accessibility API to accept suggestion in widget " )
132- }
133-
134- Text ( " You can turn it on if the accept button is not working for you. " )
135- . font ( . caption)
136- . foregroundStyle ( . secondary)
137- }
138126 }
139127 }
140128}
Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ struct WidgetView: View {
161161struct WidgetContextMenu : View {
162162 @AppStorage ( \. useGlobalChat) var useGlobalChat
163163 @AppStorage ( \. realtimeSuggestionToggle) var realtimeSuggestionToggle
164- @AppStorage ( \. acceptSuggestionWithAccessibilityAPI) var acceptSuggestionWithAccessibilityAPI
165164 @AppStorage ( \. hideCommonPrecedingSpacesInSuggestion) var hideCommonPrecedingSpacesInSuggestion
166165 @AppStorage ( \. disableSuggestionFeatureGlobally) var disableSuggestionFeatureGlobally
167166 @AppStorage ( \. suggestionFeatureEnabledProjectList) var suggestionFeatureEnabledProjectList
@@ -227,15 +226,6 @@ struct WidgetContextMenu: View {
227226 }
228227 }
229228
230- Button ( action: {
231- acceptSuggestionWithAccessibilityAPI. toggle ( )
232- } , label: {
233- Text ( " Accept Suggestion with Accessibility API " )
234- if acceptSuggestionWithAccessibilityAPI {
235- Image ( systemName: " checkmark " )
236- }
237- } )
238-
239229 Button ( action: {
240230 hideCommonPrecedingSpacesInSuggestion. toggle ( )
241231 } , label: {
Original file line number Diff line number Diff line change @@ -206,10 +206,6 @@ public extension UserDefaultPreferenceKeys {
206206 . init( defaultValue: true , key: " HideCommonPrecedingSpacesInSuggestion " )
207207 }
208208
209- var acceptSuggestionWithAccessibilityAPI : PreferenceKey < Bool > {
210- . init( defaultValue: false , key: " AcceptSuggestionWithAccessibilityAPI " )
211- }
212-
213209 var suggestionPresentationMode : PreferenceKey < PresentationMode > {
214210 . init( defaultValue: . floatingWidget, key: " SuggestionPresentationMode " )
215211 }
You can’t perform that action at this time.
0 commit comments