We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f603e9 + a3ffe53 commit de01a8dCopy full SHA for de01a8d
1 file changed
Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift.swift
@@ -12,10 +12,17 @@ public final class GraphicalUserInterfaceController {
12
suggestionWidget.dataSource = WidgetDataSource.shared
13
suggestionWidget.onOpenChatClicked = {
14
Task {
15
- let fileURL = try await Environment.fetchCurrentFileURL()
16
- await WidgetDataSource.shared.createChatIfNeeded(for: fileURL)
17
- let presenter = PresentInWindowSuggestionPresenter()
18
- presenter.presentChatRoom(fileURL: fileURL)
+ let commandHandler = WindowBaseCommandHandler()
+ _ = try await commandHandler.chatWithSelection(editor: .init(
+ content: "",
+ lines: [],
19
+ uti: "",
20
+ cursorPosition: .outOfScope,
21
+ selections: [],
22
+ tabSize: 0,
23
+ indentSize: 0,
24
+ usesTabsForIndentation: false
25
+ ))
26
}
27
28
0 commit comments