Skip to content

Commit 1c1871d

Browse files
committed
Rename "Chat with Selection" to "Open Chat"
1 parent ff193b2 commit 1c1871d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Core/Sources/HostApp/CustomCommandView.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ struct CustomCommandView: View {
2323
"Reject Suggestion",
2424
"Next Suggestion",
2525
"Previous Suggestion",
26-
"Toggle Real-time Suggestions",
2726
"Real-time Suggestions",
2827
"Prefetch Suggestions",
29-
"Chat with Selection",
28+
"Open Chat",
3029
"Prompt to Code",
3130
]
3231

@@ -63,7 +62,7 @@ struct CustomCommandView: View {
6362
Group {
6463
switch command.feature {
6564
case .chatWithSelection:
66-
Text("Chat with Selection")
65+
Text("Open Chat")
6766
case .customChat:
6867
Text("Custom Chat")
6968
case .promptToCode:
@@ -207,7 +206,7 @@ struct EditCustomCommandView: View {
207206
Text({
208207
switch commandType {
209208
case .chatWithSelection:
210-
return "Chat with Selection"
209+
return "Open Chat"
211210
case .promptToCode:
212211
return "Prompt to Code"
213212
case .customChat:

EditorExtension/ChatWithSelection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Foundation
44
import XcodeKit
55

66
class ChatWithSelectionCommand: NSObject, XCSourceEditorCommand, CommandType {
7-
var name: String { "Chat with Selection" }
7+
var name: String { "Open Chat" }
88

99
func perform(
1010
with invocation: XCSourceEditorCommandInvocation,

0 commit comments

Comments
 (0)