@@ -311,13 +311,12 @@ export class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchCon
311
311
this . _register ( this . workspaceTrustRequestService . onDidInitiateWorkspaceTrustRequestOnStartup ( async ( ) => {
312
312
313
313
let titleString : string | undefined ;
314
- let checkboxString : string | undefined ;
315
314
let learnMoreString : string | undefined ;
316
315
let trustOption : string | undefined ;
317
316
let dontTrustOption : string | undefined ;
318
- if ( await this . isAiGeneratedWorkspace ( ) && this . productService . aiGeneratedWorkspaceTrust ) {
317
+ const isAiGeneratedWorkspace = await this . isAiGeneratedWorkspace ( ) ;
318
+ if ( isAiGeneratedWorkspace && this . productService . aiGeneratedWorkspaceTrust ) {
319
319
titleString = this . productService . aiGeneratedWorkspaceTrust . title ;
320
- checkboxString = this . productService . aiGeneratedWorkspaceTrust . checkboxText ;
321
320
learnMoreString = this . productService . aiGeneratedWorkspaceTrust . startupTrustRequestLearnMore ;
322
321
trustOption = this . productService . aiGeneratedWorkspaceTrust . trustOption ;
323
322
dontTrustOption = this . productService . aiGeneratedWorkspaceTrust . dontTrustOption ;
@@ -333,9 +332,9 @@ export class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchCon
333
332
const workspaceIdentifier = toWorkspaceIdentifier ( this . workspaceContextService . getWorkspace ( ) ) ;
334
333
const isSingleFolderWorkspace = isSingleFolderWorkspaceIdentifier ( workspaceIdentifier ) ;
335
334
const isEmptyWindow = isEmptyWorkspaceIdentifier ( workspaceIdentifier ) ;
336
- if ( this . workspaceTrustManagementService . canSetParentFolderTrust ( ) ) {
335
+ if ( ! isAiGeneratedWorkspace && this . workspaceTrustManagementService . canSetParentFolderTrust ( ) ) {
337
336
const name = basename ( uriDirname ( ( workspaceIdentifier as ISingleFolderWorkspaceIdentifier ) . uri ) ) ;
338
- checkboxText = checkboxString ?? localize ( 'checkboxString' , "Trust the authors of all files in the parent folder '{0}'" , name ) ;
337
+ checkboxText = localize ( 'checkboxString' , "Trust the authors of all files in the parent folder '{0}'" , name ) ;
339
338
}
340
339
341
340
// Show Workspace Trust Start Dialog
0 commit comments