File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Service/SuggestionCommandHandler Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1+ import AppKit
12import ChatBasic
23import ChatService
34import ComposableArchitecture
@@ -124,8 +125,6 @@ struct Chat {
124125 case sendMessage( UUID )
125126 }
126127
127- @Dependency ( \. openURL) var openURL
128-
129128 var body : some ReducerOf < Self > {
130129 BindingReducer ( )
131130
@@ -214,7 +213,7 @@ struct Chat {
214213 print ( error)
215214 }
216215 } else if let url = URL ( string: reference. uri) , url. scheme != nil {
217- await openURL ( url)
216+ NSWorkspace . shared . open ( url)
218217 }
219218 }
220219
Original file line number Diff line number Diff line change @@ -486,8 +486,7 @@ struct PseudoCommandHandler: CommandHandler {
486486 #endif
487487 } else {
488488 Task {
489- @Dependency ( \. openURL) var openURL
490- await openURL ( url)
489+ NSWorkspace . shared. open ( url)
491490 }
492491 }
493492 case let . builtinExtension( extensionIdentifier, id, _) :
You can’t perform that action at this time.
0 commit comments