Skip to content

Commit fff67bf

Browse files
committed
Rename to openChat
1 parent 947e787 commit fff67bf

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Core/Sources/Service/XPCService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public class XPCService: NSObject, XPCServiceProtocol {
140140
}
141141
}
142142

143-
public func chatWithSelection(
143+
public func openChat(
144144
editorContent: Data,
145145
withReply reply: @escaping (Data?, Error?) -> Void
146146
) {

EditorExtension/OpenChat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class OpenChatCommand: NSObject, XCSourceEditorCommand, CommandType {
1313
completionHandler(nil)
1414
Task {
1515
let service = try getService()
16-
_ = try await service.chatWithSelection(editorContent: .init(invocation))
16+
_ = try await service.openChat(editorContent: .init(invocation))
1717
}
1818
}
1919
}

Tool/Sources/XPCShared/XPCExtensionService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ public class XPCExtensionService {
136136
}
137137
}
138138

139-
public func chatWithSelection(editorContent: EditorContent) async throws -> UpdatedContent? {
139+
public func openChat(editorContent: EditorContent) async throws -> UpdatedContent? {
140140
try await suggestionRequest(
141141
editorContent,
142-
{ $0.chatWithSelection }
142+
{ $0.openChat }
143143
)
144144
}
145145

Tool/Sources/XPCShared/XPCServiceProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public protocol XPCServiceProtocol {
3131
editorContent: Data,
3232
withReply reply: @escaping (_ updatedContent: Data?, Error?) -> Void
3333
)
34-
func chatWithSelection(
34+
func openChat(
3535
editorContent: Data,
3636
withReply reply: @escaping (Data?, Error?) -> Void
3737
)

0 commit comments

Comments
 (0)