@codingame/monaco-vscode-workspace-trust-service-override 11.1.1 → 12.0.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/index.d.ts +2 -1
- package/index.js +15 -1
- package/package.json +23 -7
- package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +201 -198
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +186 -184
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.d.ts +13 -0
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +7 -5
- package/workspaceTrust.js +0 -14
package/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
|
+
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
+
import { IWorkspaceTrustEnablementService, IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
4
|
+
import { WorkspaceTrustEnablementService, WorkspaceTrustManagementService, WorkspaceTrustRequestService } from '@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common/vscode/vs/workbench/services/workspaces/common/workspaceTrust';
|
|
5
|
+
import './vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js';
|
|
6
|
+
|
|
7
|
+
function getServiceOverride() {
|
|
8
|
+
return {
|
|
9
|
+
[IWorkspaceTrustEnablementService.toString()]: new SyncDescriptor(WorkspaceTrustEnablementService),
|
|
10
|
+
[IWorkspaceTrustManagementService.toString()]: new SyncDescriptor(WorkspaceTrustManagementService),
|
|
11
|
+
[IWorkspaceTrustRequestService.toString()]: new SyncDescriptor(WorkspaceTrustRequestService)
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { getServiceOverride as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-workspace-trust-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - workspace-trust service-override",
|
|
4
6
|
"keywords": [],
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "CodinGame",
|
|
@@ -12,8 +14,20 @@
|
|
|
12
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
15
|
},
|
|
14
16
|
"type": "module",
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "12.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common": "12.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-27663a0b-1249-58ba-9085-e52d706b50bc-common": "12.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "12.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common": "12.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "12.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "12.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common": "12.0.0",
|
|
27
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {},
|
|
30
|
+
"peerDependenciesMeta": {},
|
|
17
31
|
"main": "index.js",
|
|
18
32
|
"module": "index.js",
|
|
19
33
|
"types": "index.d.ts",
|
|
@@ -22,10 +36,12 @@
|
|
|
22
36
|
"default": "./index.js"
|
|
23
37
|
},
|
|
24
38
|
"./vscode/*": {
|
|
25
|
-
"default": "./vscode/src/*.js"
|
|
39
|
+
"default": "./vscode/src/*.js",
|
|
40
|
+
"types": "./vscode/src/*.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./*": {
|
|
43
|
+
"default": "./*.js",
|
|
44
|
+
"types": "./*.d.ts"
|
|
26
45
|
}
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.1"
|
|
30
46
|
}
|
|
31
47
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css
|
|
1
|
+
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".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
4
|
n(css,{});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
3
|
+
import { IWorkspaceTrustRequestService } from "vscode/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
4
|
+
import { IWorkspaceTrustManagementService } from "vscode/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
5
|
+
import { IWorkspaceTrustEnablementService } from "vscode/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
6
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
7
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
8
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
9
|
+
import { IStatusbarService } from "vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service";
|
|
10
|
+
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
11
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
13
|
+
import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
|
|
14
|
+
import { IBannerService } from "vscode/vscode/vs/workbench/services/banner/browser/bannerService.service";
|
|
15
|
+
import { ILabelService } from "vscode/vscode/vs/platform/label/common/label.service";
|
|
16
|
+
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
17
|
+
import { IRemoteAgentService } from "vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
18
|
+
import { IEnvironmentService } from "vscode/vscode/vs/platform/environment/common/environment.service";
|
|
19
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
20
|
+
export declare class WorkspaceTrustContextKeys extends Disposable implements IWorkbenchContribution {
|
|
21
|
+
private readonly _ctxWorkspaceTrustEnabled;
|
|
22
|
+
private readonly _ctxWorkspaceTrustState;
|
|
23
|
+
constructor(contextKeyService: IContextKeyService, workspaceTrustEnablementService: IWorkspaceTrustEnablementService, workspaceTrustManagementService: IWorkspaceTrustManagementService);
|
|
24
|
+
}
|
|
25
|
+
export declare class WorkspaceTrustRequestHandler extends Disposable implements IWorkbenchContribution {
|
|
26
|
+
private readonly dialogService;
|
|
27
|
+
private readonly commandService;
|
|
28
|
+
private readonly workspaceContextService;
|
|
29
|
+
private readonly workspaceTrustManagementService;
|
|
30
|
+
private readonly workspaceTrustRequestService;
|
|
31
|
+
static readonly ID = "workbench.contrib.workspaceTrustRequestHandler";
|
|
32
|
+
constructor(dialogService: IDialogService, commandService: ICommandService, workspaceContextService: IWorkspaceContextService, workspaceTrustManagementService: IWorkspaceTrustManagementService, workspaceTrustRequestService: IWorkspaceTrustRequestService);
|
|
33
|
+
private get useWorkspaceLanguage();
|
|
34
|
+
private registerListeners;
|
|
35
|
+
}
|
|
36
|
+
export declare class WorkspaceTrustUXHandler extends Disposable implements IWorkbenchContribution {
|
|
37
|
+
private readonly dialogService;
|
|
38
|
+
private readonly workspaceContextService;
|
|
39
|
+
private readonly workspaceTrustEnablementService;
|
|
40
|
+
private readonly workspaceTrustManagementService;
|
|
41
|
+
private readonly configurationService;
|
|
42
|
+
private readonly statusbarService;
|
|
43
|
+
private readonly storageService;
|
|
44
|
+
private readonly workspaceTrustRequestService;
|
|
45
|
+
private readonly bannerService;
|
|
46
|
+
private readonly labelService;
|
|
47
|
+
private readonly hostService;
|
|
48
|
+
private readonly productService;
|
|
49
|
+
private readonly remoteAgentService;
|
|
50
|
+
private readonly environmentService;
|
|
51
|
+
private readonly fileService;
|
|
52
|
+
private readonly entryId;
|
|
53
|
+
private readonly statusbarEntryAccessor;
|
|
54
|
+
constructor(dialogService: IDialogService, workspaceContextService: IWorkspaceContextService, workspaceTrustEnablementService: IWorkspaceTrustEnablementService, workspaceTrustManagementService: IWorkspaceTrustManagementService, configurationService: IConfigurationService, statusbarService: IStatusbarService, storageService: IStorageService, workspaceTrustRequestService: IWorkspaceTrustRequestService, bannerService: IBannerService, labelService: ILabelService, hostService: IHostService, productService: IProductService, remoteAgentService: IRemoteAgentService, environmentService: IEnvironmentService, fileService: IFileService);
|
|
55
|
+
private registerListeners;
|
|
56
|
+
private updateWorkbenchIndicators;
|
|
57
|
+
private doShowModal;
|
|
58
|
+
private showModalOnStart;
|
|
59
|
+
private get startupPromptSetting();
|
|
60
|
+
private get useWorkspaceLanguage();
|
|
61
|
+
private isAiGeneratedWorkspace;
|
|
62
|
+
private getBannerItem;
|
|
63
|
+
private getBannerItemAriaLabels;
|
|
64
|
+
private getBannerItemMessages;
|
|
65
|
+
private get bannerSetting();
|
|
66
|
+
private getRestrictedModeStatusbarEntry;
|
|
67
|
+
private updateStatusbarEntry;
|
|
68
|
+
}
|