@@ -88,10 +88,10 @@ export class FeatureDevController {
88
88
} )
89
89
this . chatControllerMessageListeners . followUpClicked . event ( data => {
90
90
switch ( data . followUp . type ) {
91
- case FollowUpTypes . WriteCode :
92
- return this . writeCodeClicked ( data )
93
- case FollowUpTypes . AcceptCode :
94
- return this . acceptCode ( data )
91
+ case FollowUpTypes . GenerateCode :
92
+ return this . generateCodeClicked ( data )
93
+ case FollowUpTypes . InsertCode :
94
+ return this . insertCode ( data )
95
95
case FollowUpTypes . ProvideFeedbackAndRegenerateCode :
96
96
return this . provideFeedbackAndRegenerateCode ( data )
97
97
case FollowUpTypes . Retry :
@@ -249,10 +249,10 @@ export class FeatureDevController {
249
249
// Ensure that the loading icon stays showing
250
250
this . messenger . sendAsyncEventProgress ( tabID , true , 'Ok, let me create a plan. This may take a few minutes.' )
251
251
252
- this . messenger . sendUpdatePlaceholder ( tabID , 'Generating implementation plan ...' )
252
+ this . messenger . sendUpdatePlaceholder ( tabID , 'Generating plan ...' )
253
253
254
254
const interactions = await session . send ( message )
255
- this . messenger . sendUpdatePlaceholder ( tabID , 'Add more detail to iterate on the approach ' )
255
+ this . messenger . sendUpdatePlaceholder ( tabID , 'How can this plan be improved? ' )
256
256
257
257
// Resolve the "..." with the content
258
258
this . messenger . sendAnswer ( {
@@ -265,8 +265,7 @@ export class FeatureDevController {
265
265
this . messenger . sendAnswer ( {
266
266
type : 'answer' ,
267
267
tabID,
268
- message :
269
- 'Would you like me to generate a suggestion for this? You will be able to review a file diff before inserting code in your project.' ,
268
+ message : `Would you like to generate a suggestion for this? You’ll review a file diff before inserting into your project.` ,
270
269
} )
271
270
272
271
// Follow up with action items and complete the request stream
@@ -288,7 +287,7 @@ export class FeatureDevController {
288
287
this . messenger . sendAsyncEventProgress (
289
288
tabID ,
290
289
true ,
291
- `This may take a few minutes. I will send a notification when it's complete if you navigate away from this panel`
290
+ `This may take a few minutes. I will send a notification when it's complete if you navigate away from this panel, but please keep the tab open. `
292
291
)
293
292
294
293
try {
@@ -297,7 +296,7 @@ export class FeatureDevController {
297
296
type : 'answer-stream' ,
298
297
tabID,
299
298
} )
300
- this . messenger . sendUpdatePlaceholder ( tabID , 'Writing code ...' )
299
+ this . messenger . sendUpdatePlaceholder ( tabID , 'Generating code ...' )
301
300
await session . send ( message )
302
301
const filePaths = session . state . filePaths ?? [ ]
303
302
const deletedFiles = session . state . deletedFiles ?? [ ]
@@ -367,7 +366,7 @@ export class FeatureDevController {
367
366
}
368
367
369
368
// TODO add type
370
- private async writeCodeClicked ( message : any ) {
369
+ private async generateCodeClicked ( message : any ) {
371
370
let session
372
371
try {
373
372
session = await this . sessionStorage . getSession ( message . tabID )
@@ -387,7 +386,7 @@ export class FeatureDevController {
387
386
}
388
387
389
388
// TODO add type
390
- private async acceptCode ( message : any ) {
389
+ private async insertCode ( message : any ) {
391
390
let session
392
391
try {
393
392
session = await this . sessionStorage . getSession ( message . tabID )
@@ -396,7 +395,7 @@ export class FeatureDevController {
396
395
enabled : true ,
397
396
result : 'Succeeded' ,
398
397
} )
399
- await session . acceptChanges ( )
398
+ await session . insertChanges ( )
400
399
401
400
this . messenger . sendAnswer ( {
402
401
type : 'answer' ,
@@ -426,7 +425,7 @@ export class FeatureDevController {
426
425
this . messenger . sendUpdatePlaceholder ( message . tabID , 'Provide input on additional improvements' )
427
426
} catch ( err : any ) {
428
427
this . messenger . sendErrorMessage (
429
- createUserFacingErrorMessage ( `Failed to accept code changes: ${ err . message } ` ) ,
428
+ createUserFacingErrorMessage ( `Failed to insert code changes: ${ err . message } ` ) ,
430
429
message . tabID ,
431
430
this . retriesRemaining ( session ) ,
432
431
session ?. state . phase
@@ -486,21 +485,21 @@ export class FeatureDevController {
486
485
case 'Approach' :
487
486
return [
488
487
{
489
- pillText : 'Write Code ' ,
490
- type : FollowUpTypes . WriteCode ,
488
+ pillText : 'Generate code ' ,
489
+ type : FollowUpTypes . GenerateCode ,
491
490
status : 'info' ,
492
491
} ,
493
492
]
494
493
case 'Codegen' :
495
494
return [
496
495
{
497
- pillText : 'Accept changes ' ,
498
- type : FollowUpTypes . AcceptCode ,
496
+ pillText : 'Insert code ' ,
497
+ type : FollowUpTypes . InsertCode ,
499
498
icon : 'ok' as MynahIcons ,
500
499
status : 'success' ,
501
500
} ,
502
501
{
503
- pillText : 'Provide feedback and regenerate' ,
502
+ pillText : 'Provide feedback to regenerate' ,
504
503
type : FollowUpTypes . ProvideFeedbackAndRegenerateCode ,
505
504
icon : 'refresh' as MynahIcons ,
506
505
status : 'info' ,
0 commit comments