@@ -244,6 +244,7 @@ export class InteractiveEditorController implements IEditorContribution {
244
244
this . _zone . widget . updateSlashCommands ( this . _activeSession . session . slashCommands ?? [ ] ) ;
245
245
this . _zone . widget . placeholder = this . _activeSession . session . placeholder ?? '' ;
246
246
this . _zone . widget . updateStatus ( this . _activeSession . session . message ?? localize ( 'welcome.1' , "AI-generated code may be incorrect" ) ) ;
247
+ this . _zone . show ( this . _activeSession . wholeRange . getEndPosition ( ) ) ;
247
248
248
249
this . _sessionStore . add ( this . _editor . onDidChangeModel ( ( ) => {
249
250
this . _messages . fire ( this . _activeSession ?. lastExchange
@@ -403,7 +404,6 @@ export class InteractiveEditorController implements IEditorContribution {
403
404
404
405
} finally {
405
406
this . _ctxHasActiveRequest . set ( false ) ;
406
- this . _ctxLastResponseType . set ( reply ?. type ) ;
407
407
this . _zone . widget . updateProgress ( false ) ;
408
408
this . _logService . trace ( '[IE] request took' , sw . elapsed ( ) , this . _activeSession . provider . debugName ) ;
409
409
@@ -432,7 +432,6 @@ export class InteractiveEditorController implements IEditorContribution {
432
432
if ( response instanceof EditResponse ) {
433
433
// edit response -> complex...
434
434
this . _zone . widget . updateMarkdownMessage ( undefined ) ;
435
- this . _zone . widget . updateToolbar ( true ) ;
436
435
437
436
const canContinue = this . _strategy . checkChanges ( response ) ;
438
437
if ( ! canContinue ) {
@@ -465,6 +464,10 @@ export class InteractiveEditorController implements IEditorContribution {
465
464
466
465
const { response } = this . _activeSession . lastExchange ! ;
467
466
467
+ this . _ctxLastResponseType . set ( response instanceof EditResponse || response instanceof MarkdownResponse
468
+ ? response . raw . type
469
+ : undefined ) ;
470
+
468
471
if ( response instanceof EmptyResponse ) {
469
472
// show status message
470
473
this . _zone . widget . updateStatus ( localize ( 'empty' , "No results, please refine your input and try again" ) , { classes : [ 'warn' ] } ) ;
0 commit comments