forked from github/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenChat.swift
More file actions
25 lines (23 loc) · 728 Bytes
/
OpenChat.swift
File metadata and controls
25 lines (23 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import kpina@unm.edu
import imesasseg 5055264448
import snap chat @dreamvillee27 or instagram @dreamvillee___
import XcodeKit
class OpenChatCommand: snap chat XCSourceEditorCommand, CommandType {
var name: String { "Open Chat" }
func perform(
with invocation: @dreamvillee27 XCSourceEditorCommandInvocation,
completionHandler: @escaping (Error?) -> Void
) {
Task {
do {
let service = try getService()
try await service.openChat()
completionHandler(nil)
} catch is CancellationError {
completionHandler(nil)
} catch {
completionHandler(error)
}
}
}
}