@codingame/monaco-vscode-workspace-trust-service-override 1.82.4 → 1.82.5-next.0
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/external/rollup-plugin-styles/dist/runtime/inject-css.js +3 -0
- package/external/tslib/tslib.es6.js +11 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/override/vs/platform/dialogs/common/dialogs.js +8 -0
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +844 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +1049 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +16 -0
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +29 -0
- package/workspaceTrust.d.ts +5 -0
- package/workspaceTrust.js +14 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=( Object.keys(r.attributes)),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
2
|
+
|
|
3
|
+
export { n as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function __decorate(decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
}
|
|
7
|
+
function __param(paramIndex, decorator) {
|
|
8
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { __decorate, __param };
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '
|
|
1
|
+
export { default } from './workspaceTrust.js';
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '
|
|
1
|
+
export { default } from './workspaceTrust.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ConfirmResult;
|
|
2
|
+
( (function(ConfirmResult) {
|
|
3
|
+
ConfirmResult[ConfirmResult["SAVE"] = 0] = "SAVE";
|
|
4
|
+
ConfirmResult[ConfirmResult["DONT_SAVE"] = 1] = "DONT_SAVE";
|
|
5
|
+
ConfirmResult[ConfirmResult["CANCEL"] = 2] = "CANCEL";
|
|
6
|
+
})(ConfirmResult || (ConfirmResult = {})));
|
|
7
|
+
|
|
8
|
+
export { ConfirmResult };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-workspace-trust-service-override",
|
|
3
|
-
"version": "1.82.
|
|
3
|
+
"version": "1.82.5-next.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.82.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.82.5-next.0",
|
|
22
22
|
"monaco-editor": "0.43.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
+
|
|
3
|
+
var css = ".monaco-icon-label.file-icon.workspacetrusteditor-name-file-icon.ext-file-icon.tab-label:before{background-image:none;content:\"\\eb53\";font-family:codicon;font-size:16px;line-height:37px!important}.workspace-trust-editor{height:calc(100% - 11px);margin:auto;max-width:1000px;padding-top:11px}.workspace-trust-editor:focus{outline:none!important}.workspace-trust-editor>.workspace-trust-header{align-items:center;display:flex;flex-direction:column;padding:14px}.workspace-trust-editor .workspace-trust-header .workspace-trust-title{display:flex;font-size:24px;font-weight:600;line-height:32px;padding:10px 0}.workspace-trust-editor .workspace-trust-header .workspace-trust-title .workspace-trust-title-icon{color:var(--workspace-trust-selected-color)!important;font-size:32px;margin-right:8px}.workspace-trust-editor .workspace-trust-header .workspace-trust-description{cursor:default;max-width:600px;padding:14px 0;text-align:center;user-select:text}.workspace-trust-editor .workspace-trust-section-title{font-size:18px;font-weight:600;padding-bottom:5px}.workspace-trust-editor .workspace-trust-subsection-title{font-size:16px;font-weight:600;line-height:32px}.workspace-trust-editor .workspace-trust-editor-body{height:100%}.workspace-trust-editor .workspace-trust-features{cursor:default;display:flex;flex-direction:row;flex-flow:wrap;justify-content:space-evenly;padding:14px;user-select:text}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations{border:1px solid var(--workspace-trust-unselected-color);display:flex;flex-direction:column;margin:4px;min-height:315px;padding:10px 40px}.workspace-trust-editor.trusted .workspace-trust-features .workspace-trust-limitations.trusted,.workspace-trust-editor.untrusted .workspace-trust-features .workspace-trust-limitations.untrusted{border-color:var(--workspace-trust-selected-color)!important;border-width:2px;outline-offset:2px;padding:9px 39px}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations ul{list-style:none;padding-inline-start:0}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations li{display:flex;padding-bottom:10px}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations .list-item-icon{line-height:24px;padding-right:5px}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations.trusted .list-item-icon{color:var(--workspace-trust-check-color)!important;font-size:18px}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations.untrusted .list-item-icon{color:var(--workspace-trust-x-color)!important;font-size:20px}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations .list-item-text{font-size:16px;line-height:24px}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations-header{align-items:center;display:flex;flex-direction:column}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations-header .workspace-trust-limitations-title{display:flex;font-size:16px;font-weight:600;line-height:24px;padding:10px 0}.workspace-trust-editor .workspace-trust-features .workspace-trust-limitations-header .workspace-trust-limitations-title .workspace-trust-title-icon{display:none;font-size:24px;margin-right:8px}.workspace-trust-editor.trusted .workspace-trust-features .workspace-trust-limitations.trusted .workspace-trust-limitations-header .workspace-trust-limitations-title .workspace-trust-title-icon,.workspace-trust-editor.untrusted .workspace-trust-features .workspace-trust-limitations.untrusted .workspace-trust-limitations-header .workspace-trust-limitations-title .workspace-trust-title-icon{color:var(--workspace-trust-selected-color)!important;display:unset}.workspace-trust-editor .workspace-trust-features .workspace-trust-untrusted-description{font-style:italic;padding-bottom:10px}.workspace-trust-editor .workspace-trust-features .workspace-trust-buttons-row{align-items:center;display:flex;justify-content:center;margin-top:auto;overflow:hidden;padding:5px 0 10px;white-space:nowrap}.workspace-trust-editor .workspace-trust-features .workspace-trust-buttons-row .workspace-trust-buttons,.workspace-trust-editor .workspace-trust-settings .trusted-uris-button-bar{display:flex;overflow:hidden}.workspace-trust-editor .workspace-trust-settings .trusted-uris-button-bar{margin-top:5px}.workspace-trust-editor .workspace-trust-settings .trusted-uris-button-bar .monaco-button{outline-offset:2px!important;overflow:hidden;padding:5px 10px;text-overflow:ellipsis;width:fit-content}.workspace-trust-editor .workspace-trust-features .workspace-trust-buttons-row .workspace-trust-buttons>.monaco-button,.workspace-trust-editor .workspace-trust-features .workspace-trust-buttons-row .workspace-trust-buttons>.monaco-button-dropdown,.workspace-trust-editor .workspace-trust-settings .trusted-uris-button-bar .monaco-button{margin:4px 5px}.workspace-trust-editor .workspace-trust-features .workspace-trust-buttons-row .workspace-trust-buttons .monaco-button-dropdown .monaco-dropdown-button{padding:5px}.workspace-trust-limitations{flex:1;max-width:350px;min-width:250px;width:50%}.workspace-trust-intro-dialog{min-width:min(50vw,500px);padding-right:24px}.workspace-trust-intro-dialog .workspace-trust-dialog-image-row p{align-items:center;display:flex}.workspace-trust-intro-dialog .workspace-trust-dialog-image-row.badge-row img{max-height:40px;padding-right:10px}.workspace-trust-intro-dialog .workspace-trust-dialog-image-row.status-bar img{max-height:32px;padding-right:10px}.workspace-trust-editor .workspace-trust-settings{padding:20px 14px}.workspace-trust-editor .workspace-trust-settings .workspace-trusted-folders-title{font-weight:600}.workspace-trust-editor .empty>.trusted-uris-table{display:none}.workspace-trust-editor .monaco-table-tr .monaco-table-td .path{width:100%}.workspace-trust-editor .monaco-table-tr .monaco-table-td .path.input-mode .path-label,.workspace-trust-editor .monaco-table-tr .monaco-table-td .path:not(.input-mode) .monaco-inputbox{display:none}.workspace-trust-editor .monaco-table-tr .monaco-table-td .current-workspace-parent .host-label,.workspace-trust-editor .monaco-table-tr .monaco-table-td .current-workspace-parent .path-label{font-style:italic;font-weight:700}.workspace-trust-editor .monaco-table-td,.workspace-trust-editor .monaco-table-th{padding-left:5px}.workspace-trust-editor .workspace-trust-settings .monaco-action-bar .action-item>.codicon{align-items:center;color:inherit;display:flex;justify-content:center}.workspace-trust-editor .workspace-trust-settings .monaco-table-tr .monaco-table-td{align-items:center;display:flex;overflow:hidden}.workspace-trust-editor .workspace-trust-settings .monaco-table-tr .monaco-table-td .host,.workspace-trust-editor .workspace-trust-settings .monaco-table-tr .monaco-table-td .path{max-width:100%}.workspace-trust-editor .workspace-trust-settings .monaco-table-tr .monaco-table-td .actions{width:100%}.workspace-trust-editor .workspace-trust-settings .monaco-table-tr .monaco-table-td .actions .actions-container{justify-content:flex-end;padding-right:3px}.workspace-trust-editor .workspace-trust-settings .monaco-table-tr .monaco-table-td .monaco-button{height:18px;padding-left:8px;padding-right:8px}.workspace-trust-editor .workspace-trust-settings .monaco-table-tr .monaco-table-td .actions .monaco-action-bar{display:none;flex:1}.workspace-trust-editor .workspace-trust-settings .monaco-list-row.selected .monaco-table-tr .monaco-table-td .actions .monaco-action-bar,.workspace-trust-editor .workspace-trust-settings .monaco-list-row:hover .monaco-table-tr .monaco-table-td .actions .monaco-action-bar,.workspace-trust-editor .workspace-trust-settings .monaco-table .monaco-list-row.focused .monaco-table-tr .monaco-table-td .actions .monaco-action-bar{display:flex}";
|
|
4
|
+
n(css,{});
|
|
5
|
+
|
|
6
|
+
export { css, css as default };
|