Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workspace trust wording tweaks #170249

Merged
merged 2 commits into from
Dec 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@ export class WorkspaceTrustRequestHandler extends Disposable implements IWorkben
this.workspaceContextService.getWorkbenchState() !== WorkbenchState.EMPTY ?
localize('openLooseFileWorkspaceDetails', "You are trying to open untrusted files in a workspace which is trusted.") :
localize('openLooseFileWindowDetails', "You are trying to open untrusted files in a window which is trusted."),
localize('openLooseFileLearnMore', "If you don't trust the authors of these files, we recommend to open them in Restricted Mode in a new window as the files may be malicious. See [our docs](https://aka.ms/vscode-workspace-trust) to learn more.")
localize('openLooseFileLearnMore', "If you don't want to open untrusted files, we recommend to open them in Restricted Mode in a new window as the files may be malicious. See [our docs](https://aka.ms/vscode-workspace-trust) to learn more.")
];

// Dialog
const result = await this.dialogService.show(
Severity.Info,
localize('openLooseFileMesssage', "Do you trust the authors of these files?"),
this.workspaceContextService.getWorkbenchState() !== WorkbenchState.EMPTY ?
localize('openLooseFileWorkspaceMesssage', "Do you want to allow untrusted files in this workspace?") :
localize('openLooseFileWindowMesssage', "Do you want to allow untrusted files in this window?"),
[localize('open', "Open"), localize('newWindow', "Open in Restricted Mode"), localize('cancel', "Cancel")],
{
cancelId: 2,
Expand Down