@theia/workspace 1.75.0-next.42 → 1.75.0-next.46
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.
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkspaceTrustDialog = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
2
5
|
// *****************************************************************************
|
|
3
6
|
// Copyright (C) 2026 EclipseSource and others.
|
|
4
7
|
//
|
|
@@ -14,12 +17,9 @@
|
|
|
14
17
|
//
|
|
15
18
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
19
|
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.WorkspaceTrustDialog = void 0;
|
|
19
20
|
const core_1 = require("@theia/core");
|
|
20
21
|
const browser_1 = require("@theia/core/lib/browser");
|
|
21
22
|
const react_dialog_1 = require("@theia/core/lib/browser/dialogs/react-dialog");
|
|
22
|
-
const React = require("@theia/core/shared/react");
|
|
23
23
|
class WorkspaceTrustDialog extends react_dialog_1.ReactDialog {
|
|
24
24
|
constructor(folderUris) {
|
|
25
25
|
super({
|
|
@@ -45,19 +45,10 @@ class WorkspaceTrustDialog extends react_dialog_1.ReactDialog {
|
|
|
45
45
|
this.accept();
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
React.createElement("div", { className: "workspace-trust-description" }, core_1.nls.localize('theia/workspace/trustDialogMessage', 'If you trust the authors, code in this folder may be executed, including tasks, debug configurations, extensions, and AI features.')),
|
|
53
|
-
React.createElement("div", { className: "workspace-trust-description" }, core_1.nls.localize('theia/workspace/trustDialogRestricted', "If you don't trust the authors, the workspace will open in Restricted Mode, which disables these features to protect against potentially harmful code.")),
|
|
54
|
-
React.createElement("div", { className: "workspace-trust-description" },
|
|
55
|
-
React.createElement("a", { href: "https://theia-ide.org/docs/workspace_trust/", title: "https://theia-ide.org/docs/workspace_trust/", target: "_blank", rel: "noopener noreferrer" }, core_1.nls.localize('theia/workspace/trustLearnMore', "Learn more about Theia's Workspace Trust"))),
|
|
56
|
-
this.folderUris.length > 0 && (React.createElement("div", { className: "workspace-trust-folder" },
|
|
57
|
-
React.createElement("ul", { className: "workspace-trust-folder-list" }, this.folderUris.map(uri => {
|
|
58
|
-
const stringified = uri.path.fsPath();
|
|
59
|
-
return (React.createElement("li", { key: stringified }, stringified));
|
|
60
|
-
}))))));
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "workspace-trust-content", children: [(0, jsx_runtime_1.jsxs)("div", { className: "workspace-trust-header", children: [(0, jsx_runtime_1.jsx)("i", { className: (0, browser_1.codicon)('shield') }), (0, jsx_runtime_1.jsx)("div", { className: "workspace-trust-title", children: core_1.nls.localizeByDefault('Do you trust the authors of the files in this folder?') })] }), (0, jsx_runtime_1.jsx)("div", { className: "workspace-trust-description", children: core_1.nls.localize('theia/workspace/trustDialogMessage', 'If you trust the authors, code in this folder may be executed, including tasks, debug configurations, extensions, and AI features.') }), (0, jsx_runtime_1.jsx)("div", { className: "workspace-trust-description", children: core_1.nls.localize('theia/workspace/trustDialogRestricted', "If you don't trust the authors, the workspace will open in Restricted Mode, which disables these features to protect against potentially harmful code.") }), (0, jsx_runtime_1.jsx)("div", { className: "workspace-trust-description", children: (0, jsx_runtime_1.jsx)("a", { href: "https://theia-ide.org/docs/workspace_trust/", title: "https://theia-ide.org/docs/workspace_trust/", target: "_blank", rel: "noopener noreferrer", children: core_1.nls.localize('theia/workspace/trustLearnMore', "Learn more about Theia's Workspace Trust") }) }), this.folderUris.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "workspace-trust-folder", children: (0, jsx_runtime_1.jsx)("ul", { className: "workspace-trust-folder-list", children: this.folderUris.map(uri => {
|
|
49
|
+
const stringified = uri.path.fsPath();
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)("li", { children: stringified }, stringified));
|
|
51
|
+
}) }) }))] }));
|
|
61
52
|
}
|
|
62
53
|
}
|
|
63
54
|
exports.WorkspaceTrustDialog = WorkspaceTrustDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-trust-dialog.js","sourceRoot":"","sources":["../../src/browser/workspace-trust-dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace-trust-dialog.js","sourceRoot":"","sources":["../../src/browser/workspace-trust-dialog.tsx"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,sCAAkC;AAClC,qDAAkD;AAClD,+EAA2E;AAI3E,MAAa,oBAAqB,SAAQ,0BAAoB;IAG1D,YAA+B,UAAiB;QAC5C,KAAK,CAAC;YACF,KAAK,EAAE,EAAE;YACT,QAAQ,EAAE,GAAG;SAChB,CAAC,CAAC;QAJwB,eAAU,GAAV,UAAU,CAAO;QAFtC,cAAS,GAAG,IAAI,CAAC;QAQvB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAElD,IAAI,CAAC,iBAAiB,CAAC,UAAG,CAAC,iBAAiB,CAAC,+BAA+B,CAAC,CAAC,CAAC;QAC/E,IAAI,CAAC,kBAAkB,CAAC,UAAG,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAAC,CAAC;QAC3E,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACzD,CAAC;IAED,IAAI,K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AC,CAAC,GACD,GACH,CACT,IACC,CACT,CAAC;IACN,CAAC;CACJ;AA5ED,oDA4EC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/workspace",
|
|
3
|
-
"version": "1.75.0-next.
|
|
3
|
+
"version": "1.75.0-next.46+eb558223a",
|
|
4
4
|
"description": "Theia - Workspace Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.75.0-next.
|
|
7
|
-
"@theia/filesystem": "1.75.0-next.
|
|
8
|
-
"@theia/variable-resolver": "1.75.0-next.
|
|
6
|
+
"@theia/core": "1.75.0-next.46+eb558223a",
|
|
7
|
+
"@theia/filesystem": "1.75.0-next.46+eb558223a",
|
|
8
|
+
"@theia/variable-resolver": "1.75.0-next.46+eb558223a",
|
|
9
9
|
"jsonc-parser": "^3.3.1",
|
|
10
10
|
"tslib": "^2.8.1",
|
|
11
11
|
"valid-filename": "^2.0.1"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"nyc": {
|
|
56
56
|
"extends": "../../configs/nyc.json"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "eb558223aae4b1ebf0a64deeb51741032cb8ea50"
|
|
59
59
|
}
|