File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/vs/workbench/contrib/chat/browser/actions Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -236,14 +236,15 @@ abstract class OpenChatGlobalAction extends Action2 {
236236 let resp : Promise < IChatResponseModel | undefined > | undefined ;
237237
238238 if ( opts ?. query ) {
239- if ( opts . isPartialQuery ) {
240- chatWidget . setInput ( opts . query ) ;
241- } else {
239+ chatWidget . setInput ( opts . query ) ;
240+
241+ if ( ! opts . isPartialQuery ) {
242242 await chatWidget . waitForReady ( ) ;
243243 await waitForDefaultAgent ( chatAgentService , chatWidget . input . currentModeKind ) ;
244- resp = chatWidget . acceptInput ( opts . query ) ;
244+ resp = chatWidget . acceptInput ( ) ;
245245 }
246246 }
247+
247248 if ( opts ?. toolIds && opts . toolIds . length > 0 ) {
248249 for ( const toolId of opts . toolIds ) {
249250 const tool = toolsService . getTool ( toolId ) ;
You can’t perform that action at this time.
0 commit comments