We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09d10b7 commit 6294653Copy full SHA for 6294653
Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift
@@ -237,8 +237,9 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
237
}
238
239
func chatWithSelection(editor: EditorContent) async throws -> UpdatedContent? {
240
- Task {
+ Task { @MainActor in
241
let viewStore = GraphicalUserInterfaceController.shared.viewStore
242
+ viewStore.send(.createChatGPTChatTabIfNeeded)
243
viewStore.send(.openChatPanel(forceDetach: false))
244
245
return nil
0 commit comments