You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ name }=splitName(splitName((workspaceIdentifierasISingleFolderWorkspaceIdentifier).uri.fsPath).parentPath);
321
+
checkboxText=localize('checkboxString',"Trust the authors of all files in the parent folder '{0}'",name);
322
+
}
323
+
324
+
// Show Workspace Trust Start Dialog
325
+
this.doShowModal(
326
+
title,
327
+
{label: localize('trustOption',"Yes, I trust the authors"),sublabel: isSingleFolderWorkspace ? localize('trustFolderOptionDescription',"Trust folder and enable all features") : localize('trustWorkspaceOptionDescription',"Trust workspace and enable all features")},
328
+
{label: localize('dontTrustOption',"No, I don't trust the authors"),sublabel: isSingleFolderWorkspace ? localize('dontTrustFolderOptionDescription',"Browse folder in restricted mode") : localize('dontTrustWorkspaceOptionDescription',"Browse workspace in restricted mode")},
329
+
[
330
+
!isSingleFolderWorkspace ?
331
+
localize('workspaceStartupTrustDetails',"{0} provides features that may automatically execute files in this workspace.",this.productService.nameShort) :
332
+
localize('folderStartupTrustDetails',"{0} provides features that may automatically execute files in this folder.",this.productService.nameShort),
333
+
localize('startupTrustRequestLearnMore',"If you don't trust the authors of these files, we recommend to continue in restricted mode as the files may be malicious. See [our docs](https://aka.ms/vscode-workspace-trust) to learn more."),
const{ name }=splitName(splitName((workspaceIdentifierasISingleFolderWorkspaceIdentifier).uri.fsPath).parentPath);
416
-
checkboxText=localize('checkboxString',"Trust the authors of all files in the parent folder '{0}'",name);
417
-
}
418
-
419
-
// Show Workspace Trust Start Dialog
420
-
this.doShowModal(
421
-
title,
422
-
{label: localize('trustOption',"Yes, I trust the authors"),sublabel: isSingleFolderWorkspace ? localize('trustFolderOptionDescription',"Trust folder and enable all features") : localize('trustWorkspaceOptionDescription',"Trust workspace and enable all features")},
423
-
{label: localize('dontTrustOption',"No, I don't trust the authors"),sublabel: isSingleFolderWorkspace ? localize('dontTrustFolderOptionDescription',"Browse folder in restricted mode") : localize('dontTrustWorkspaceOptionDescription',"Browse workspace in restricted mode")},
424
-
[
425
-
!isSingleFolderWorkspace ?
426
-
localize('workspaceStartupTrustDetails',"{0} provides features that may automatically execute files in this workspace.",this.productService.nameShort) :
427
-
localize('folderStartupTrustDetails',"{0} provides features that may automatically execute files in this folder.",this.productService.nameShort),
428
-
localize('startupTrustRequestLearnMore',"If you don't trust the authors of these files, we recommend to continue in restricted mode as the files may be malicious. See [our docs](https://aka.ms/vscode-workspace-trust) to learn more."),
0 commit comments