Skip to content

Commit

Permalink
fixes #126614
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Jun 24, 2021
1 parent 6a76c62 commit 94463fa
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ export class WorkspaceTrustEditor extends EditorPane {
localize('untrustedDescription', "{0} is in a restricted mode intended for safe code browsing.", product.nameShort);

const headerDescriptionActions = append(this.headerDescription, $('div'));
const headerDescriptionActionsText = localize('workspaceTrustEditorHeaderActions', "[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}) or [learn more](https://aka.ms/vscode-workspace-trust).", `command:workbench.trust.configure`);
for (const node of parseLinkedText(headerDescriptionActionsText).nodes) {
if (typeof node === 'string') {
append(headerDescriptionActions, document.createTextNode(node));
Expand Down Expand Up @@ -817,13 +817,13 @@ export class WorkspaceTrustEditor extends EditorPane {
[
localize('untrustedTasks', "Tasks are not allowed to run"),
localize('untrustedDebugging', "Debugging is disabled"),
localize('untrustedExtensions', "[{0} extensions]({1}) are disabled or have limited functionality", numExtensions, `command:${LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID}`)
localize({ key: 'untrustedExtensions', comment: ['Please ensure the markdown link syntax is not broken up with whitespace [text block](link block)'] }, "[{0} extensions]({1}) are disabled or have limited functionality", numExtensions, `command:${LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID}`)
] :
[
localize('untrustedTasks', "Tasks are not allowed to run"),
localize('untrustedDebugging', "Debugging is disabled"),
numSettings ? localize('untrustedSettings', "[{0} workspace settings]({1}) are not applied", numSettings, 'command:settings.filterUntrusted') : localize('no untrustedSettings', "Workspace settings requiring trust are not applied"),
localize('untrustedExtensions', "[{0} extensions]({1}) are disabled or have limited functionality", numExtensions, `command:${LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID}`)
numSettings ? localize({ key: 'untrustedSettings', comment: ['Please ensure the markdown link syntax is not broken up with whitespace [text block](link block)'] }, "[{0} workspace settings]({1}) are not applied", numSettings, 'command:settings.filterUntrusted') : localize('no untrustedSettings', "Workspace settings requiring trust are not applied"),
localize({ key: 'untrustedExtensions', comment: ['Please ensure the markdown link syntax is not broken up with whitespace [text block](link block)'] }, "[{0} extensions]({1}) are disabled or have limited functionality", numExtensions, `command:${LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID}`)
];
this.renderLimitationsListElement(untrustedContainer, untrustedContainerItems, xListIcon.classNamesArray);

Expand Down

0 comments on commit 94463fa

Please sign in to comment.