@codingame/monaco-vscode-workspace-trust-service-override 7.1.1 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-workspace-trust-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -291,8 +291,8 @@ let WorkspaceTrustUXHandler = class WorkspaceTrustUXHandler extends Disposable {
|
|
|
291
291
|
console.warn('AI generated workspace trust dialog contents not available.');
|
|
292
292
|
}
|
|
293
293
|
const title = titleString ?? (this.useWorkspaceLanguage ?
|
|
294
|
-
( localize(
|
|
295
|
-
( localize(
|
|
294
|
+
( localize(3166, "Do you trust the authors of the files in this workspace?")) :
|
|
295
|
+
( localize(3167, "Do you trust the authors of the files in this folder?")));
|
|
296
296
|
let checkboxText;
|
|
297
297
|
const workspaceIdentifier = toWorkspaceIdentifier(this.workspaceContextService.getWorkspace());
|
|
298
298
|
const isSingleFolderWorkspace = isSingleFolderWorkspaceIdentifier(workspaceIdentifier);
|
|
@@ -321,8 +321,8 @@ let WorkspaceTrustedUrisTable = class WorkspaceTrustedUrisTable extends Disposab
|
|
|
321
321
|
canSelectFolders: true,
|
|
322
322
|
canSelectMany: false,
|
|
323
323
|
defaultUri: item.uri,
|
|
324
|
-
openLabel: ( localize(
|
|
325
|
-
title: ( localize(
|
|
324
|
+
openLabel: ( localize(7368, "Trust Folder")),
|
|
325
|
+
title: ( localize(7369, "Select Folder To Trust"))
|
|
326
326
|
});
|
|
327
327
|
if (uri) {
|
|
328
328
|
this.acceptEdit(item, uri[0]);
|
|
@@ -696,7 +696,7 @@ let WorkspaceTrustEditor = class WorkspaceTrustEditor extends EditorPane {
|
|
|
696
696
|
break;
|
|
697
697
|
}
|
|
698
698
|
case WorkbenchState.FOLDER: {
|
|
699
|
-
title = trusted ? ( localize(7388, "In a Trusted Folder")) : ( localize(
|
|
699
|
+
title = trusted ? ( localize(7388, "In a Trusted Folder")) : ( localize(7385, "In Restricted Mode"));
|
|
700
700
|
subTitle = trusted ? ( localize(
|
|
701
701
|
7389,
|
|
702
702
|
"You trust the authors of the files in the current folder. All features are enabled:"
|
|
@@ -708,7 +708,7 @@ let WorkspaceTrustEditor = class WorkspaceTrustEditor extends EditorPane {
|
|
|
708
708
|
break;
|
|
709
709
|
}
|
|
710
710
|
case WorkbenchState.WORKSPACE: {
|
|
711
|
-
title = trusted ? ( localize(7391, "In a Trusted Workspace")) : ( localize(
|
|
711
|
+
title = trusted ? ( localize(7391, "In a Trusted Workspace")) : ( localize(7385, "In Restricted Mode"));
|
|
712
712
|
subTitle = trusted ? ( localize(
|
|
713
713
|
7392,
|
|
714
714
|
"You trust the authors of the files in the current workspace. All features are enabled:"
|
|
@@ -826,7 +826,7 @@ let WorkspaceTrustEditor = class WorkspaceTrustEditor extends EditorPane {
|
|
|
826
826
|
createConfigurationElement(parent) {
|
|
827
827
|
this.configurationContainer = append(parent, $('.workspace-trust-settings', { tabIndex: '0' }));
|
|
828
828
|
const configurationTitle = append(this.configurationContainer, $('.workspace-trusted-folders-title'));
|
|
829
|
-
configurationTitle.innerText = ( localize(
|
|
829
|
+
configurationTitle.innerText = ( localize(7366, "Trusted Folders & Workspaces"));
|
|
830
830
|
this.workspaceTrustedUrisTable = this._register(this.instantiationService.createInstance(WorkspaceTrustedUrisTable, this.configurationContainer));
|
|
831
831
|
}
|
|
832
832
|
createAffectedFeaturesElement(parent) {
|
|
@@ -846,10 +846,10 @@ let WorkspaceTrustEditor = class WorkspaceTrustEditor extends EditorPane {
|
|
|
846
846
|
( localize(7400, "All enabled extensions are activated"))
|
|
847
847
|
] :
|
|
848
848
|
[
|
|
849
|
-
( localize(
|
|
850
|
-
( localize(
|
|
849
|
+
( localize(7398, "Tasks are allowed to run")),
|
|
850
|
+
( localize(7399, "Debugging is enabled")),
|
|
851
851
|
( localize(7401, "All workspace settings are applied")),
|
|
852
|
-
( localize(
|
|
852
|
+
( localize(7400, "All enabled extensions are activated"))
|
|
853
853
|
];
|
|
854
854
|
this.renderLimitationsListElement(this.trustedContainer, trustedContainerItems, ThemeIcon.asClassNameArray(checkListIcon));
|
|
855
855
|
const [untrustedTitle, untrustedSubTitle] = this.getFeaturesHeaderText(false);
|
|
@@ -866,8 +866,8 @@ let WorkspaceTrustEditor = class WorkspaceTrustEditor extends EditorPane {
|
|
|
866
866
|
)))
|
|
867
867
|
] :
|
|
868
868
|
[
|
|
869
|
-
( localize(
|
|
870
|
-
( localize(
|
|
869
|
+
( localize(7402, "Tasks are not allowed to run")),
|
|
870
|
+
( localize(7403, "Debugging is disabled")),
|
|
871
871
|
fixBadLocalizedLinks(numSettings ? ( localize(
|
|
872
872
|
7405,
|
|
873
873
|
"[{0} workspace settings]({1}) are not applied",
|
|
@@ -875,7 +875,7 @@ let WorkspaceTrustEditor = class WorkspaceTrustEditor extends EditorPane {
|
|
|
875
875
|
'command:settings.filterUntrusted'
|
|
876
876
|
)) : ( localize(7406, "Workspace settings requiring trust are not applied"))),
|
|
877
877
|
fixBadLocalizedLinks(( localize(
|
|
878
|
-
|
|
878
|
+
7404,
|
|
879
879
|
"[{0} extensions]({1}) are disabled or have limited functionality",
|
|
880
880
|
numExtensions,
|
|
881
881
|
`command:${LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID}`
|