File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ struct SettingsView: View {
3131 @AppStorage ( \. suggestionCodeFontSize) var suggestionCodeFontSize
3232 @AppStorage ( \. chatFontSize) var chatFontSize
3333 @AppStorage ( \. chatCodeFontSize) var chatCodeFontSize
34+ @AppStorage ( \. suggestionFeatureProvider) var suggestionFeatureProvider
3435 init ( ) { }
3536 }
3637
@@ -79,6 +80,19 @@ struct SettingsView: View {
7980 } label: {
8081 Text ( " Present suggestions in " )
8182 }
83+
84+ Picker ( selection: $settings. suggestionFeatureProvider) {
85+ ForEach ( SuggestionFeatureProvider . allCases, id: \. rawValue) {
86+ switch $0 {
87+ case . gitHubCopilot:
88+ Text ( " GitHub Copilot " ) . tag ( $0)
89+ case . codeium:
90+ Text ( " Codeium " ) . tag ( $0)
91+ }
92+ }
93+ } label: {
94+ Text ( " Generate suggestion with " )
95+ }
8296
8397 if settings. suggestionPresentationMode == PresentationMode . floatingWidget {
8498 Picker ( selection: $settings. suggestionWidgetPositionMode) {
Original file line number Diff line number Diff line change 11import Foundation
22
3- public enum SuggestionFeatureProvider : Int {
3+ public enum SuggestionFeatureProvider : Int , CaseIterable {
44 case gitHubCopilot
55 case codeium
66}
You can’t perform that action at this time.
0 commit comments