parent
06aa366ab2
commit
3724cf8f6e
1 changed files with 4 additions and 1 deletions
|
@ -49,6 +49,7 @@ import { LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID } from 'vs/workbench/c
|
|||
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
|
||||
import { WORKSPACE_TRUST_SETTING_TAG } from 'vs/workbench/contrib/preferences/common/preferences';
|
||||
import { IPreferencesService } from 'vs/workbench/services/preferences/common/preferences';
|
||||
import { ILabelService } from 'vs/platform/label/common/label';
|
||||
|
||||
const BANNER_RESTRICTED_MODE = 'workbench.banner.restrictedMode';
|
||||
const STARTUP_PROMPT_SHOWN_KEY = 'workspace.trust.startupPrompt.shown';
|
||||
|
@ -195,6 +196,7 @@ export class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchCon
|
|||
@IStorageService private readonly storageService: IStorageService,
|
||||
@IWorkspaceTrustRequestService private readonly workspaceTrustRequestService: IWorkspaceTrustRequestService,
|
||||
@IBannerService private readonly bannerService: IBannerService,
|
||||
@ILabelService private readonly labelService: ILabelService,
|
||||
@IHostService private readonly hostService: IHostService,
|
||||
) {
|
||||
super();
|
||||
|
@ -380,7 +382,8 @@ export class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchCon
|
|||
!isSingleFolderWorkspace ?
|
||||
localize('workspaceStartupTrustDetails', "{0} provides features that may automatically execute files in this workspace.", product.nameShort) :
|
||||
localize('folderStartupTrustDetails', "{0} provides features that may automatically execute files in this folder.", product.nameShort),
|
||||
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.")
|
||||
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."),
|
||||
`\`${this.labelService.getWorkspaceLabel(workspaceIdentifier, { verbose: true })}\``,
|
||||
],
|
||||
checkboxText
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue