@@ -530,7 +530,7 @@ export class AIProviderService implements Disposable {
530530 progress ?: ProgressOptions ;
531531 } ,
532532 ) : Promise < AISummarizeResult | undefined > {
533- if ( ! ( await this . ensureFeatureAccess ( 'generateChangelog ' , source ) ) ) {
533+ if ( ! ( await this . ensureFeatureAccess ( 'generateCreatePullRequest ' , source ) ) ) {
534534 return undefined ;
535535 }
536536
@@ -547,12 +547,12 @@ export class AIProviderService implements Disposable {
547547 }
548548
549549 const result = await this . sendRequest (
550- 'generate-pullRequestMessage ' ,
550+ 'generate-create-pullRequest ' ,
551551 ( ) => ( {
552552 diff : diff ?. contents ?? '' ,
553553 data : commits . sort ( ( a , b ) => a [ 1 ] - b [ 1 ] ) . map ( c => c [ 0 ] ) ,
554554 context : options ?. context ?? '' ,
555- instructions : configuration . get ( 'ai.generatePullRequestMessage .customInstructions' ) ?? '' ,
555+ instructions : configuration . get ( 'ai.generateCreatePullRequest .customInstructions' ) ?? '' ,
556556 } ) ,
557557 m => `Generating pull request details with ${ m . name } ...` ,
558558 source ,
@@ -582,7 +582,7 @@ export class AIProviderService implements Disposable {
582582 codeSuggestion ?: boolean ;
583583 } ,
584584 ) : Promise < AISummarizeResult | undefined > {
585- if ( ! ( await this . ensureFeatureAccess ( 'cloudPatchGenerateTitleAndDescription ' , sourceContext ) ) ) {
585+ if ( ! ( await this . ensureFeatureAccess ( 'generateCreateDraft ' , sourceContext ) ) ) {
586586 return undefined ;
587587 }
588588
@@ -598,8 +598,8 @@ export class AIProviderService implements Disposable {
598598 context : options ?. context ?? '' ,
599599 instructions :
600600 ( options ?. codeSuggestion
601- ? configuration . get ( 'ai.generateCodeSuggestMessage .customInstructions' )
602- : configuration . get ( 'ai.generateCloudPatchMessage .customInstructions' ) ) ?? '' ,
601+ ? configuration . get ( 'ai.generateCreateCodeSuggest .customInstructions' )
602+ : configuration . get ( 'ai.generateCreateCloudPatch .customInstructions' ) ) ?? '' ,
603603 } ) ,
604604 m =>
605605 `Generating ${ options ?. codeSuggestion ? 'code suggestion' : 'cloud patch' } description with ${
0 commit comments