Skip to content

Commit 0fb1fc7

Browse files
committed
Update text
1 parent f94cf3e commit 0fb1fc7

File tree

3 files changed

+42
-38
lines changed

3 files changed

+42
-38
lines changed

Core/Sources/HostApp/FeatureSettings/ChatSettingsView.swift

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ struct ChatSettingsView: View {
4646
var chatSettingsForm: some View {
4747
Form {
4848
Picker(
49-
"Chat Model",
49+
"Chat model",
5050
selection: $settings.defaultChatFeatureChatModelId
5151
) {
5252
if !settings.chatModels
5353
.contains(where: { $0.id == settings.defaultChatFeatureChatModelId })
5454
{
5555
Text(
5656
(settings.chatModels.first?.name).map { "\($0) (Default)" }
57-
?? "No Model Found"
57+
?? "No model found"
5858
)
5959
.tag(settings.defaultChatFeatureChatModelId)
6060
}
@@ -65,15 +65,15 @@ struct ChatSettingsView: View {
6565
}
6666

6767
Picker(
68-
"Embedding Model",
68+
"Embedding model",
6969
selection: $settings.defaultChatFeatureEmbeddingModelId
7070
) {
7171
if !settings.embeddingModels
7272
.contains(where: { $0.id == settings.defaultChatFeatureEmbeddingModelId })
7373
{
7474
Text(
7575
(settings.embeddingModels.first?.name).map { "\($0) (Default)" }
76-
?? "No Model Found"
76+
?? "No model found"
7777
)
7878
.tag(settings.defaultChatFeatureEmbeddingModelId)
7979
}
@@ -84,12 +84,12 @@ struct ChatSettingsView: View {
8484
}
8585

8686
if #available(macOS 13.0, *) {
87-
LabeledContent("Reply in Language") {
87+
LabeledContent("Reply in language") {
8888
languagePicker
8989
}
9090
} else {
9191
HStack {
92-
Text("Reply in Language")
92+
Text("Reply in language")
9393
languagePicker
9494
}
9595
}
@@ -126,7 +126,7 @@ struct ChatSettingsView: View {
126126
}
127127

128128
VStack(alignment: .leading, spacing: 4) {
129-
Text("Default System Prompt")
129+
Text("Default system prompt")
130130
EditableText(text: $settings.defaultChatSystemPrompt)
131131
.lineLimit(6)
132132
}
@@ -174,7 +174,7 @@ struct ChatSettingsView: View {
174174
}, set: {
175175
settings.chatSearchPluginMaxIterations = Int($0) ?? 0
176176
})) {
177-
Text("Search Plugin Max Iterations")
177+
Text("Search plugin max iterations")
178178
}
179179
.textFieldStyle(.roundedBorder)
180180
}
@@ -192,7 +192,7 @@ struct ChatSettingsView: View {
192192
)
193193
}
194194
Button(
195-
"Auto-detected by ChatGPT",
195+
"Auto-detected by LLM",
196196
action: { self.settings.chatGPTLanguage = "" }
197197
)
198198
ForEach(
@@ -207,7 +207,7 @@ struct ChatSettingsView: View {
207207
} label: {
208208
Text(
209209
settings.chatGPTLanguage.isEmpty
210-
? "Auto-detected by ChatGPT"
210+
? "Auto-detected by LLM"
211211
: settings.chatGPTLanguage
212212
)
213213
}
@@ -307,7 +307,7 @@ struct ChatSettingsView: View {
307307
}
308308

309309
Picker(
310-
"Preferred Chat Model",
310+
"Preferred chat model",
311311
selection: $settings.preferredChatModelIdForSenseScope
312312
) {
313313
Text("Use the default model").tag("")
@@ -320,7 +320,7 @@ struct ChatSettingsView: View {
320320
{
321321
Text(
322322
(settings.chatModels.first?.name).map { "\($0) (Default)" }
323-
?? "No Model Found"
323+
?? "No model found"
324324
)
325325
.tag(settings.preferredChatModelIdForSenseScope)
326326
}
@@ -338,6 +338,8 @@ struct ChatSettingsView: View {
338338
Text("""
339339
Enable the bot to search code and texts \
340340
in the project, third party packages and the SDK.
341+
342+
The current implementation only performs keyword search.
341343
""")
342344
} else: {
343345
VStack(alignment: .leading) {
@@ -349,6 +351,8 @@ struct ChatSettingsView: View {
349351
WithFeatureEnabled(\.senseScopeInChat, alignment: .inlineLeading) {
350352
Text("the project, third party packages and the SDK.")
351353
}
354+
355+
Text("The current implementation only performs keyword search.")
352356
}
353357
}
354358
) {
@@ -358,7 +362,7 @@ struct ChatSettingsView: View {
358362
}
359363

360364
Picker(
361-
"Preferred Chat Model",
365+
"Preferred chat model",
362366
selection: $settings.preferredChatModelIdForProjectScope
363367
) {
364368
Text("Use the default model").tag("")
@@ -395,7 +399,7 @@ struct ChatSettingsView: View {
395399
}
396400

397401
Picker(
398-
"Preferred Chat Model",
402+
"Preferred chat model",
399403
selection: $settings.preferredChatModelIdForWebScope
400404
) {
401405
Text("Use the default model").tag("")
@@ -408,7 +412,7 @@ struct ChatSettingsView: View {
408412
{
409413
Text(
410414
(settings.chatModels.first?.name).map { "\($0) (Default)" }
411-
?? "No Model Found"
415+
?? "No model found"
412416
)
413417
.tag(settings.preferredChatModelIdForWebScope)
414418
}

Core/Sources/HostApp/FeatureSettings/PromptToCodeSettingsView.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ struct PromptToCodeSettingsView: View {
3232
VStack(alignment: .center) {
3333
Form {
3434
Picker(
35-
"Chat Model",
35+
"Chat model",
3636
selection: $settings.promptToCodeChatModelId
3737
) {
38-
Text("Same as Chat Feature").tag("")
38+
Text("Same as chat feature").tag("")
3939

4040
if !settings.chatModels
4141
.contains(where: { $0.id == settings.promptToCodeChatModelId }),
4242
!settings.promptToCodeChatModelId.isEmpty
4343
{
4444
Text(
4545
(settings.chatModels.first?.name).map { "\($0) (Default)" }
46-
?? "No Model Found"
46+
?? "No model found"
4747
)
4848
.tag(settings.promptToCodeChatModelId)
4949
}
@@ -54,18 +54,18 @@ struct PromptToCodeSettingsView: View {
5454
}
5555

5656
Picker(
57-
"Embedding Model",
57+
"Embedding model",
5858
selection: $settings.promptToCodeEmbeddingModelId
5959
) {
60-
Text("Same as Chat Feature").tag("")
60+
Text("Same as chat feature").tag("")
6161

6262
if !settings.embeddingModels
6363
.contains(where: { $0.id == settings.promptToCodeEmbeddingModelId }),
6464
!settings.promptToCodeEmbeddingModelId.isEmpty
6565
{
6666
Text(
6767
(settings.embeddingModels.first?.name).map { "\($0) (Default)" }
68-
?? "No Model Found"
68+
?? "No model found"
6969
)
7070
.tag(settings.promptToCodeEmbeddingModelId)
7171
}
@@ -76,19 +76,19 @@ struct PromptToCodeSettingsView: View {
7676
}
7777

7878
Toggle(isOn: $settings.promptToCodeGenerateDescription) {
79-
Text("Generate Description")
79+
Text("Generate description")
8080
}
8181

8282
Toggle(isOn: $settings.promptToCodeGenerateDescriptionInUserPreferredLanguage) {
83-
Text("Generate Description in user preferred language")
83+
Text("Generate description in user preferred language")
8484
}
8585
}
8686

8787
SettingsDivider("UI")
8888

8989
Form {
9090
Toggle(isOn: $settings.hideCommonPrecedingSpaces) {
91-
Text("Hide Common Preceding Spaces")
91+
Text("Hide common preceding spaces")
9292
}
9393

9494
Toggle(isOn: $settings.wrapCode) {

Core/Sources/HostApp/FeatureSettings/SuggestionSettingsView.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ struct SuggestionSettingsView: View {
106106
ForEach(PresentationMode.allCases, id: \.rawValue) {
107107
switch $0 {
108108
case .nearbyTextCursor:
109-
Text("Nearby Text Cursor").tag($0)
109+
Text("Nearby text cursor").tag($0)
110110
case .floatingWidget:
111-
Text("Floating Widget").tag($0)
111+
Text("Floating widget").tag($0)
112112
}
113113
}
114114
} label: {
@@ -157,7 +157,7 @@ struct SuggestionSettingsView: View {
157157
if !settings.extensionSuggestionFeatureProviderOptions.contains(where: {
158158
$0.bundleIdentifier == identifier
159159
}) {
160-
Text("\(name) (Not Found)").tag(
160+
Text("\(name) (Not found)").tag(
161161
SuggestionFeatureProviderOption(
162162
name: name,
163163
bundleIdentifier: identifier
@@ -166,39 +166,39 @@ struct SuggestionSettingsView: View {
166166
}
167167
}
168168
} label: {
169-
Text("Feature Provider")
169+
Text("Feature provider")
170170
}
171171

172172
Toggle(isOn: $settings.realtimeSuggestionToggle) {
173-
Text("Real-time Suggestion")
173+
Text("Real-time suggestion")
174174
}
175175

176176
#if canImport(ProHostApp)
177177
WithFeatureEnabled(\.suggestionSense) {
178178
Toggle(isOn: $settings.isSuggestionSenseEnabled) {
179-
Text("Suggestion Cheatsheet (Experimental)")
179+
Text("Suggestion cheatsheet (experimental)")
180180
}
181181
}
182182
#endif
183183

184184
#if canImport(ProHostApp)
185185
WithFeatureEnabled(\.tabToAcceptSuggestion) {
186186
Toggle(isOn: $settings.acceptSuggestionWithTab) {
187-
Text("Accept Suggestion with Tab")
187+
Text("Accept suggestion with Tab")
188188
}
189189
}
190190

191191
Toggle(isOn: $settings.dismissSuggestionWithEsc) {
192-
Text("Dismiss Suggestion with ESC")
192+
Text("Dismiss suggestion with ESC")
193193
}
194194
#endif
195195

196196
HStack {
197197
Toggle(isOn: $settings.disableSuggestionFeatureGlobally) {
198-
Text("Disable Suggestion Feature Globally")
198+
Text("Disable suggestion feature globally")
199199
}
200200

201-
Button("Exception List") {
201+
Button("Exception list") {
202202
isSuggestionFeatureEnabledListPickerOpen = true
203203
}
204204
}.sheet(isPresented: $isSuggestionFeatureEnabledListPickerOpen) {
@@ -208,7 +208,7 @@ struct SuggestionSettingsView: View {
208208
}
209209

210210
HStack {
211-
Button("Disabled Language List") {
211+
Button("Disabled language list") {
212212
isSuggestionFeatureDisabledLanguageListViewOpen = true
213213
}
214214
}.sheet(isPresented: $isSuggestionFeatureDisabledLanguageListViewOpen) {
@@ -219,7 +219,7 @@ struct SuggestionSettingsView: View {
219219

220220
HStack {
221221
Slider(value: $settings.realtimeSuggestionDebounce, in: 0.1...2, step: 0.1) {
222-
Text("Real-time Suggestion Debounce")
222+
Text("Real-time suggestion debounce")
223223
}
224224

225225
Text(
@@ -240,11 +240,11 @@ struct SuggestionSettingsView: View {
240240

241241
Form {
242242
Toggle(isOn: $settings.suggestionDisplayCompactMode) {
243-
Text("Hide Buttons")
243+
Text("Hide buttons")
244244
}
245245

246246
Toggle(isOn: $settings.hideCommonPrecedingSpacesInSuggestion) {
247-
Text("Hide Common Preceding Spaces")
247+
Text("Hide common preceding spaces")
248248
}
249249

250250
#if canImport(ProHostApp)

0 commit comments

Comments
 (0)