工作区信任功能中,移除外链"了解详细信息"和"我们的文档".
This commit is contained in:
parent
09f0f9a241
commit
94b3b77d00
|
@ -10192,14 +10192,14 @@
|
|||
"folderTrust": "是否信任此文件夹中的文件的作者?",
|
||||
"grantFolderTrustButton": "信任文件夹并继续",
|
||||
"grantWorkspaceTrustButton": "信任工作区并继续",
|
||||
"immediateTrustRequestLearnMore": "如果不信任这些文件的作者,则建议不要继续,因为这些文件可能是恶意文件。请参阅[我们的文档](https://aka.ms/vscode-workspace-trust),了解详细信息。",
|
||||
"immediateTrustRequestLearnMore": "如果不信任这些文件的作者,则建议不要继续,因为这些文件可能是恶意文件。",
|
||||
"immediateTrustRequestMessage": "如果不信任当前打开的文件或文件夹的源,则尝试使用的功能可能会带来安全风险。",
|
||||
"manageWorkspaceTrust": "管理工作区信任",
|
||||
"manageWorkspaceTrustButton": "管理",
|
||||
"newWindow": "在受限模式中打开",
|
||||
"no": "否",
|
||||
"open": "打开",
|
||||
"openLooseFileLearnMore": "如果不信任这些文件的作者,则建议在新窗口中通过受限模式打开它们,因为这些文件可能是恶意文件。请参阅[我们的文档](https://aka.ms/vscode-workspace-trust),了解详细信息。",
|
||||
"openLooseFileLearnMore": "如果不信任这些文件的作者,则建议在新窗口中通过受限模式打开它们,因为这些文件可能是恶意文件。",
|
||||
"openLooseFileMesssage": "是否信任这些文件的作者?",
|
||||
"openLooseFileWindowDetails": "你尝试在受信任的窗口中打开不受信任的文件。",
|
||||
"openLooseFileWorkspaceCheckbox": "记住我对所有工作区的决定",
|
||||
|
@ -10213,7 +10213,7 @@
|
|||
"restrictedModeBannerMessageWindow": "受限模式旨在实现安全地浏览代码。信任此窗口以启用所有功能。",
|
||||
"restrictedModeBannerMessageWorkspace": "受限模式旨在实现安全地浏览代码。信任此工作区以启用所有功能。",
|
||||
"securityConfigurationTitle": "安全性",
|
||||
"startupTrustRequestLearnMore": "如果不信任这些文件的作者,则建议继续使用限制模式,因为这些文件可能是恶意文件。请参阅[我们的文档](https://aka.ms/vscode-workspace-trust),了解详细信息。",
|
||||
"startupTrustRequestLearnMore": "如果不信任这些文件的作者,则建议继续使用限制模式,因为这些文件可能是恶意文件。",
|
||||
"status.WorkspaceTrust": "工作区信任",
|
||||
"status.ariaTrustedFolder": "此文件夹受信任。",
|
||||
"status.ariaTrustedWindow": "此窗口受信任。",
|
||||
|
@ -10304,7 +10304,7 @@
|
|||
"untrustedWorkspace": "在受限模式下",
|
||||
"untrustedWorkspaceReason": "此工作区通过以下受信任文件夹中的加粗条目得到信任。",
|
||||
"untrustedWorkspaceSubtitle": "你不信任当前工作区中文件的作者。已禁用以下功能:",
|
||||
"workspaceTrustEditorHeaderActions": "[配置设置]({0}) 或 [了解详细信息](https://aka.ms/vscode-workspace-trust)。",
|
||||
"workspaceTrustEditorHeaderActions": "[配置设置]({0})。",
|
||||
"xListIcon": "工作区信任编辑器中十字形的图标。"
|
||||
},
|
||||
"vs/workbench/contrib/workspace/common/workspace": {
|
||||
|
|
|
@ -105,7 +105,7 @@ 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 trust the authors of these files, we recommend to open them in Restricted Mode in a new window as the files may be malicious.")
|
||||
];
|
||||
|
||||
// Dialog
|
||||
|
@ -171,7 +171,7 @@ export class WorkspaceTrustRequestHandler extends Disposable implements IWorkben
|
|||
icon: Codicon.shield,
|
||||
markdownDetails: [
|
||||
{ markdown: new MarkdownString(message) },
|
||||
{ markdown: new MarkdownString(localize('immediateTrustRequestLearnMore', "If you don't trust the authors of these files, we do not recommend continuing as the files may be malicious. See [our docs](https://aka.ms/vscode-workspace-trust) to learn more.")) }
|
||||
{ markdown: new MarkdownString(localize('immediateTrustRequestLearnMore', "If you don't trust the authors of these files, we do not recommend continuing as the files may be malicious.")) }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -312,7 +312,7 @@ export class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchCon
|
|||
!isSingleFolderWorkspace ?
|
||||
localize('workspaceStartupTrustDetails', "{0} provides features that may automatically execute files in this workspace.", this.productService.nameShort) :
|
||||
localize('folderStartupTrustDetails', "{0} provides features that may automatically execute files in this folder.", this.productService.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."),
|
||||
`\`${this.labelService.getWorkspaceLabel(workspaceIdentifier, { verbose: true })}\``,
|
||||
],
|
||||
checkboxText
|
||||
|
@ -445,10 +445,6 @@ export class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchCon
|
|||
{
|
||||
label: localize('restrictedModeBannerManage', "Manage"),
|
||||
href: 'command:' + MANAGE_TRUST_COMMAND_ID
|
||||
},
|
||||
{
|
||||
label: localize('restrictedModeBannerLearnMore', "Learn More"),
|
||||
href: 'https://aka.ms/vscode-workspace-trust'
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -848,7 +848,7 @@ export class WorkspaceTrustEditor extends EditorPane {
|
|||
localize('untrustedDescription', "{0} is in a restricted mode intended for safe code browsing.", this.productService.nameShort);
|
||||
|
||||
const headerDescriptionActions = append(this.headerDescription, $('div'));
|
||||
const headerDescriptionActionsText = localize({ key: 'workspaceTrustEditorHeaderActions', comment: ['Please ensure the markdown link syntax is not broken up with whitespace [text block](link block)'] }, "[Configure your settings]({0}) or [learn more](https://aka.ms/vscode-workspace-trust).", `command:workbench.trust.configure`);
|
||||
const headerDescriptionActionsText = localize({ key: 'workspaceTrustEditorHeaderActions', comment: ['Please ensure the markdown link syntax is not broken up with whitespace [text block](link block)'] }, "[Configure your settings]({0}).", `command:workbench.trust.configure`);
|
||||
for (const node of parseLinkedText(headerDescriptionActionsText).nodes) {
|
||||
if (typeof node === 'string') {
|
||||
append(headerDescriptionActions, document.createTextNode(node));
|
||||
|
|
Loading…
Reference in New Issue