@codingame/monaco-vscode-user-data-profile-service-override 11.1.2 → 12.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/index.d.ts +2 -1
- package/index.js +126 -1
- package/package.json +31 -8
- package/vscode/src/vs/base/browser/ui/radio/radio.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/radio/radio.d.ts +37 -0
- package/vscode/src/vs/base/browser/ui/radio/radio.js +1 -0
- package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.d.ts +16 -0
- package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js +3 -2
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.d.ts +42 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +10 -11
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/media/userDataProfilesEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.js +3 -2
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +65 -63
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +5 -4
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.d.ts +73 -0
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +298 -307
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.d.ts +236 -0
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +168 -166
- package/vscode/src/vs/workbench/contrib/userDataProfile/common/userDataProfile.d.ts +7 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +19 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +4 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.d.ts +77 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +83 -82
- package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.d.ts +58 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +31 -28
- package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.d.ts +47 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +24 -24
- package/vscode/src/vs/workbench/services/userDataProfile/browser/media/userDataProfileView.css.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.d.ts +48 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +29 -29
- package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.d.ts +43 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +54 -54
- package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.d.ts +45 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +24 -24
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.d.ts +63 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +106 -111
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.d.ts +32 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +11 -8
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.d.ts +58 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +35 -33
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.d.ts +18 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.js +7 -5
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.d.ts +45 -0
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +25 -22
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.d.ts +18 -0
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +3 -1
- package/userDataProfile.js +0 -125
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,126 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
4
|
+
import { IUserDataSyncStoreManagementService, IUserDataSyncUtilService } from 'vscode/vscode/vs/platform/userDataSync/common/userDataSync.service';
|
|
5
|
+
import { BrowserUserDataProfilesService } from './vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js';
|
|
6
|
+
import { IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
7
|
+
import { UserDataInitializationService } from './vscode/src/vs/workbench/services/userData/browser/userDataInit.js';
|
|
8
|
+
import { IUserDataInitializationService } from 'vscode/vscode/vs/workbench/services/userData/browser/userDataInit.service';
|
|
9
|
+
import { UserDataSyncInitializer } from './vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js';
|
|
10
|
+
import { UserDataProfileInitializer } from './vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js';
|
|
11
|
+
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
12
|
+
import { ISecretStorageService } from 'vscode/vscode/vs/platform/secrets/common/secrets.service';
|
|
13
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
14
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
15
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
16
|
+
import { IRequestService } from 'vscode/vscode/vs/platform/request/common/request.service';
|
|
17
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
18
|
+
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
19
|
+
import { IUserDataProfileService, IUserDataProfileImportExportService, IUserDataProfileManagementService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
20
|
+
import { mark } from 'vscode/vscode/vs/base/common/performance';
|
|
21
|
+
import { timeout } from 'vscode/vscode/vs/base/common/async';
|
|
22
|
+
import { IWorkbenchConfigurationService } from '@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common/vscode/vs/workbench/services/configuration/common/configuration.service';
|
|
23
|
+
import { UserDataProfileImportExportService } from './vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js';
|
|
24
|
+
import { UserDataProfileManagementService } from './vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js';
|
|
25
|
+
import { IUserDataProfileStorageService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfileStorageService.service';
|
|
26
|
+
import { UserDataProfileStorageService } from './vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.js';
|
|
27
|
+
import { UserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfileService';
|
|
28
|
+
import { UserDataSyncUtilService } from './vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js';
|
|
29
|
+
import { registerServiceInitializePostParticipant } from 'vscode/lifecycle';
|
|
30
|
+
import { getWorkspaceIdentifier } from 'vscode/workbench';
|
|
31
|
+
import './vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.js';
|
|
32
|
+
|
|
33
|
+
function isWorkspaceService(configurationService) {
|
|
34
|
+
return 'reloadLocalUserConfiguration' in configurationService;
|
|
35
|
+
}
|
|
36
|
+
async function initializeUserData(userDataInitializationService, configurationService) {
|
|
37
|
+
if (await userDataInitializationService.requiresInitialization()) {
|
|
38
|
+
mark('code/willInitRequiredUserData');
|
|
39
|
+
await userDataInitializationService.initializeRequiredResources();
|
|
40
|
+
if (isWorkspaceService(configurationService)) {
|
|
41
|
+
await configurationService.reloadLocalUserConfiguration();
|
|
42
|
+
}
|
|
43
|
+
mark('code/didInitRequiredUserData');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
registerServiceInitializePostParticipant(async (accessor) => {
|
|
47
|
+
try {
|
|
48
|
+
await Promise.race([
|
|
49
|
+
timeout(5000),
|
|
50
|
+
initializeUserData(accessor.get(IUserDataInitializationService), accessor.get(IWorkbenchConfigurationService))
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
accessor.get(ILogService).error(error);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
let InjectedUserDataInitializationService = class InjectedUserDataInitializationService extends UserDataInitializationService {
|
|
58
|
+
constructor(environmentService, secretStorageService, userDataSyncStoreManagementService, fileService, userDataProfilesService, storageService, productService, requestService, logService, uriIdentityService, userDataProfileService) {
|
|
59
|
+
const userDataInitializers = [];
|
|
60
|
+
userDataInitializers.push(new UserDataSyncInitializer(environmentService, secretStorageService, userDataSyncStoreManagementService, fileService, userDataProfilesService, storageService, productService, requestService, logService, uriIdentityService));
|
|
61
|
+
if (environmentService.options?.profile != null) {
|
|
62
|
+
userDataInitializers.push(new UserDataProfileInitializer(environmentService, fileService, userDataProfileService, storageService, logService, uriIdentityService, requestService));
|
|
63
|
+
}
|
|
64
|
+
super(userDataInitializers);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
InjectedUserDataInitializationService = __decorate([
|
|
68
|
+
__param(0, IBrowserWorkbenchEnvironmentService),
|
|
69
|
+
__param(1, ISecretStorageService),
|
|
70
|
+
__param(2, IUserDataSyncStoreManagementService),
|
|
71
|
+
__param(3, IFileService),
|
|
72
|
+
__param(4, IUserDataProfilesService),
|
|
73
|
+
__param(5, IStorageService),
|
|
74
|
+
__param(6, IProductService),
|
|
75
|
+
__param(7, IRequestService),
|
|
76
|
+
__param(8, ILogService),
|
|
77
|
+
__param(9, IUriIdentityService),
|
|
78
|
+
__param(10, IUserDataProfileService)
|
|
79
|
+
], InjectedUserDataInitializationService);
|
|
80
|
+
function getCurrentProfile(workspace, userDataProfilesService, environmentService) {
|
|
81
|
+
if (environmentService.options?.profile != null) {
|
|
82
|
+
const profile = userDataProfilesService.profiles.find((p) => p.name === environmentService.options?.profile?.name);
|
|
83
|
+
if (profile != null) {
|
|
84
|
+
return profile;
|
|
85
|
+
}
|
|
86
|
+
return userDataProfilesService.defaultProfile;
|
|
87
|
+
}
|
|
88
|
+
return (userDataProfilesService.getProfileForWorkspace(workspace) ??
|
|
89
|
+
userDataProfilesService.defaultProfile);
|
|
90
|
+
}
|
|
91
|
+
let InjectedUserDataProfileService = class InjectedUserDataProfileService extends UserDataProfileService {
|
|
92
|
+
constructor(environmentService, userDataProfilesService, logService) {
|
|
93
|
+
const workspace = getWorkspaceIdentifier();
|
|
94
|
+
const profile = getCurrentProfile(workspace, userDataProfilesService, environmentService);
|
|
95
|
+
super(profile);
|
|
96
|
+
if (profile === userDataProfilesService.defaultProfile &&
|
|
97
|
+
environmentService.options?.profile != null) {
|
|
98
|
+
userDataProfilesService
|
|
99
|
+
.createNamedProfile(environmentService.options.profile.name, undefined, workspace)
|
|
100
|
+
.then(async (profile) => {
|
|
101
|
+
await this.updateCurrentProfile(profile);
|
|
102
|
+
})
|
|
103
|
+
.catch((err) => {
|
|
104
|
+
logService.error(err);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
InjectedUserDataProfileService = __decorate([
|
|
110
|
+
__param(0, IBrowserWorkbenchEnvironmentService),
|
|
111
|
+
__param(1, IUserDataProfilesService),
|
|
112
|
+
__param(2, ILogService)
|
|
113
|
+
], InjectedUserDataProfileService);
|
|
114
|
+
function getServiceOverride() {
|
|
115
|
+
return {
|
|
116
|
+
[IUserDataProfileService.toString()]: new SyncDescriptor(InjectedUserDataProfileService, [], true),
|
|
117
|
+
[IUserDataProfilesService.toString()]: new SyncDescriptor(BrowserUserDataProfilesService, [], true),
|
|
118
|
+
[IUserDataInitializationService.toString()]: new SyncDescriptor(InjectedUserDataInitializationService, [], true),
|
|
119
|
+
[IUserDataProfileImportExportService.toString()]: new SyncDescriptor(UserDataProfileImportExportService, [], true),
|
|
120
|
+
[IUserDataProfileManagementService.toString()]: new SyncDescriptor(UserDataProfileManagementService, [], true),
|
|
121
|
+
[IUserDataProfileStorageService.toString()]: new SyncDescriptor(UserDataProfileStorageService, [], true),
|
|
122
|
+
[IUserDataSyncUtilService.toString()]: new SyncDescriptor(UserDataSyncUtilService, [], true)
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export { getServiceOverride as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-user-data-profile-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - user-data-profile service-override",
|
|
4
6
|
"keywords": [],
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "CodinGame",
|
|
@@ -12,8 +14,28 @@
|
|
|
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-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common": "12.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-3607c442-ae7a-594b-b840-038378c24fef-common": "12.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "12.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.1",
|
|
22
|
+
"@codingame/monaco-vscode-a022e9a8-b522-5ea2-97c7-f3dda2b0b597-common": "12.0.1",
|
|
23
|
+
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "12.0.1",
|
|
24
|
+
"@codingame/monaco-vscode-d8236b3b-b91a-522d-89f4-94d70a546f6a-common": "12.0.1",
|
|
25
|
+
"@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common": "12.0.1",
|
|
26
|
+
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "12.0.1",
|
|
27
|
+
"@codingame/monaco-vscode-f405f7ba-995b-5117-bc17-5bc7f77d92e9-common": "12.0.1",
|
|
28
|
+
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "12.0.1",
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.1"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": "12.0.1"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": {
|
|
36
|
+
"optional": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
17
39
|
"main": "index.js",
|
|
18
40
|
"module": "index.js",
|
|
19
41
|
"types": "index.d.ts",
|
|
@@ -22,11 +44,12 @@
|
|
|
22
44
|
"default": "./index.js"
|
|
23
45
|
},
|
|
24
46
|
"./vscode/*": {
|
|
25
|
-
"default": "./vscode/src/*.js"
|
|
47
|
+
"default": "./vscode/src/*.js",
|
|
48
|
+
"types": "./vscode/src/*.d.ts"
|
|
49
|
+
},
|
|
50
|
+
"./*": {
|
|
51
|
+
"default": "./*.js",
|
|
52
|
+
"types": "./*.d.ts"
|
|
26
53
|
}
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2",
|
|
30
|
-
"@codingame/monaco-vscode-user-data-profile-user-data-sync-common": "11.1.2"
|
|
31
54
|
}
|
|
32
55
|
}
|
|
@@ -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 = ".monaco-custom-radio{display:flex}.monaco-custom-radio>.monaco-button{border-radius:0;font-size:.9em;line-height:1em;padding-left:.5em;padding-right:.5em}.monaco-custom-radio>.monaco-button:first-child{border-bottom-left-radius:3px;border-top-left-radius:3px}.monaco-custom-radio>.monaco-button:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}.monaco-custom-radio>.monaco-button:not(.active):not(:last-child){border-right:none}.monaco-custom-radio>.monaco-button.previous-active{border-left:none}.monaco-custom-radio>.monaco-button{background-color:var(--vscode-radio-inactiveBackground);border-color:var(--vscode-radio-inactiveBorder,transparent);color:var(--vscode-radio-inactiveForeground)}.monaco-custom-radio>.monaco-button.active,.monaco-custom-radio>.monaco-button.active:hover{background-color:var(--vscode-radio-activeBackground);border-color:var(--vscode-radio-activeBorder,transparent);color:var(--vscode-radio-activeForeground)}.hc-black .monaco-custom-radio>.monaco-button.active,.hc-light .monaco-custom-radio>.monaco-button.active{border-color:var(--vscode-radio-activeBorder,transparent)}.hc-black .monaco-custom-radio>.monaco-button:not(.active),.hc-light .monaco-custom-radio>.monaco-button:not(.active){border-color:var(--vscode-radio-inactiveBorder,transparent)}.hc-black .monaco-custom-radio>.monaco-button:not(.active):hover,.hc-light .monaco-custom-radio>.monaco-button:not(.active):hover{outline:1px dashed var(--vscode-toolbar-hoverOutline);outline-offset:-1px}.monaco-custom-radio>.monaco-button:hover:not(.active){background-color:var(--vscode-radio-inactiveHoverBackground)}";
|
|
4
4
|
n(css,{});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Widget } from "vscode/vscode/vs/base/browser/ui/widget";
|
|
2
|
+
import { ThemeIcon } from "vscode/vscode/vs/base/common/themables";
|
|
3
|
+
import { IHoverDelegate } from "vscode/vscode/vs/base/browser/ui/hover/hoverDelegate";
|
|
4
|
+
export interface IRadioStyles {
|
|
5
|
+
readonly activeForeground?: string;
|
|
6
|
+
readonly activeBackground?: string;
|
|
7
|
+
readonly activeBorder?: string;
|
|
8
|
+
readonly inactiveForeground?: string;
|
|
9
|
+
readonly inactiveBackground?: string;
|
|
10
|
+
readonly inactiveHoverBackground?: string;
|
|
11
|
+
readonly inactiveBorder?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IRadioOptionItem {
|
|
14
|
+
readonly text: string;
|
|
15
|
+
readonly tooltip?: string;
|
|
16
|
+
readonly isActive?: boolean;
|
|
17
|
+
readonly disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface IRadioOptions {
|
|
20
|
+
readonly items: ReadonlyArray<IRadioOptionItem>;
|
|
21
|
+
readonly activeIcon?: ThemeIcon;
|
|
22
|
+
readonly hoverDelegate?: IHoverDelegate;
|
|
23
|
+
}
|
|
24
|
+
export declare class Radio extends Widget {
|
|
25
|
+
private readonly _onDidSelect;
|
|
26
|
+
readonly onDidSelect: import("vscode/vscode/vs/base/common/event").Event<number>;
|
|
27
|
+
readonly domNode: HTMLElement;
|
|
28
|
+
private readonly hoverDelegate;
|
|
29
|
+
private items;
|
|
30
|
+
private activeItem;
|
|
31
|
+
private readonly buttons;
|
|
32
|
+
constructor(opts: IRadioOptions);
|
|
33
|
+
setItems(items: ReadonlyArray<IRadioOptionItem>): void;
|
|
34
|
+
setActiveItem(index: number): void;
|
|
35
|
+
setEnabled(enabled: boolean): void;
|
|
36
|
+
private updateButtons;
|
|
37
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IEnvironmentService } from "vscode/vscode/vs/platform/environment/common/environment.service";
|
|
2
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
3
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
4
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
5
|
+
import { IUserDataProfile, StoredProfileAssociations, StoredUserDataProfile, UserDataProfilesService } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile";
|
|
6
|
+
import { IUserDataProfilesService } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
|
|
7
|
+
export declare class BrowserUserDataProfilesService extends UserDataProfilesService implements IUserDataProfilesService {
|
|
8
|
+
private readonly changesBroadcastChannel;
|
|
9
|
+
constructor(environmentService: IEnvironmentService, fileService: IFileService, uriIdentityService: IUriIdentityService, logService: ILogService);
|
|
10
|
+
private updateTransientProfiles;
|
|
11
|
+
protected getStoredProfiles(): StoredUserDataProfile[];
|
|
12
|
+
protected triggerProfilesChanges(added: IUserDataProfile[], removed: IUserDataProfile[], updated: IUserDataProfile[]): void;
|
|
13
|
+
protected saveStoredProfiles(storedProfiles: StoredUserDataProfile[]): void;
|
|
14
|
+
protected getStoredProfileAssociations(): StoredProfileAssociations;
|
|
15
|
+
protected saveStoredProfileAssociations(storedProfileAssociations: StoredProfileAssociations): void;
|
|
16
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
+
import { BroadcastDataChannel } from '@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common/vscode/vs/base/browser/broadcast';
|
|
3
4
|
import { revive } from 'vscode/vscode/vs/base/common/marshalling';
|
|
4
5
|
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
5
6
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IStorageDatabase } from "vscode/vscode/vs/base/parts/storage/common/storage";
|
|
3
|
+
import { IStorageValueChangeEvent, StorageTarget } from "vscode/vscode/vs/platform/storage/common/storage";
|
|
4
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
5
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
6
|
+
import { IRemoteService } from "vscode/vscode/vs/platform/ipc/common/services";
|
|
7
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
8
|
+
import { IUserDataProfile } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile";
|
|
9
|
+
import { IUserDataProfilesService } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
|
|
10
|
+
import { IUserDataProfileStorageService } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfileStorageService.service";
|
|
11
|
+
export interface IProfileStorageValueChanges {
|
|
12
|
+
readonly profile: IUserDataProfile;
|
|
13
|
+
readonly changes: IStorageValueChangeEvent[];
|
|
14
|
+
}
|
|
15
|
+
export interface IProfileStorageChanges {
|
|
16
|
+
readonly targetChanges: IUserDataProfile[];
|
|
17
|
+
readonly valueChanges: IProfileStorageValueChanges[];
|
|
18
|
+
}
|
|
19
|
+
export interface IStorageValue {
|
|
20
|
+
readonly value: string | undefined;
|
|
21
|
+
readonly target: StorageTarget;
|
|
22
|
+
}
|
|
23
|
+
export declare abstract class AbstractUserDataProfileStorageService extends Disposable implements IUserDataProfileStorageService {
|
|
24
|
+
protected readonly storageService: IStorageService;
|
|
25
|
+
_serviceBrand: undefined;
|
|
26
|
+
readonly abstract onDidChange: Event<IProfileStorageChanges>;
|
|
27
|
+
private readonly storageServicesMap;
|
|
28
|
+
constructor(persistStorages: boolean, storageService: IStorageService);
|
|
29
|
+
readStorageData(profile: IUserDataProfile): Promise<Map<string, IStorageValue>>;
|
|
30
|
+
updateStorageData(profile: IUserDataProfile, data: Map<string, string | undefined | null>, target: StorageTarget): Promise<void>;
|
|
31
|
+
withProfileScopedStorageService<T>(profile: IUserDataProfile, fn: (storageService: IStorageService) => Promise<T>): Promise<T>;
|
|
32
|
+
private getItems;
|
|
33
|
+
private writeItems;
|
|
34
|
+
protected abstract createStorageDatabase(profile: IUserDataProfile): Promise<IStorageDatabase>;
|
|
35
|
+
}
|
|
36
|
+
export declare class RemoteUserDataProfileStorageService extends AbstractUserDataProfileStorageService implements IUserDataProfileStorageService {
|
|
37
|
+
private readonly remoteService;
|
|
38
|
+
private readonly _onDidChange;
|
|
39
|
+
readonly onDidChange: Event<IProfileStorageChanges>;
|
|
40
|
+
constructor(persistStorages: boolean, remoteService: IRemoteService, userDataProfilesService: IUserDataProfilesService, storageService: IStorageService, logService: ILogService);
|
|
41
|
+
protected createStorageDatabase(profile: IUserDataProfile): Promise<IStorageDatabase>;
|
|
42
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable, DisposableMap, toDisposable, isDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { Storage } from 'vscode/vscode/vs/base/parts/storage/common/storage';
|
|
4
|
-
import { AbstractStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
5
|
+
import { StorageScope, StorageTarget, AbstractStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
5
6
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
6
7
|
import 'vscode/vscode/vs/base/common/event';
|
|
7
8
|
import 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
@@ -55,18 +56,16 @@ let AbstractUserDataProfileStorageService = class AbstractUserDataProfileStorage
|
|
|
55
56
|
getItems(storageService) {
|
|
56
57
|
const result = ( new Map());
|
|
57
58
|
const populate = (target) => {
|
|
58
|
-
for (const key of ( storageService.keys(
|
|
59
|
-
result.set(key, { value: storageService.get(key,
|
|
59
|
+
for (const key of ( storageService.keys(StorageScope.PROFILE, target))) {
|
|
60
|
+
result.set(key, { value: storageService.get(key, StorageScope.PROFILE), target });
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
|
-
populate(
|
|
63
|
-
populate(
|
|
63
|
+
populate(StorageTarget.USER);
|
|
64
|
+
populate(StorageTarget.MACHINE);
|
|
64
65
|
return result;
|
|
65
66
|
}
|
|
66
67
|
writeItems(storageService, items, target) {
|
|
67
|
-
storageService.storeAll(( Array.from(items.entries()).map(
|
|
68
|
-
([key, value]) => ({ key, value, scope: 0 , target })
|
|
69
|
-
)), true);
|
|
68
|
+
storageService.storeAll(( Array.from(items.entries()).map(([key, value]) => ({ key, value, scope: StorageScope.PROFILE, target }))), true);
|
|
70
69
|
}
|
|
71
70
|
};
|
|
72
71
|
AbstractUserDataProfileStorageService = ( __decorate([
|
|
@@ -81,7 +80,7 @@ class StorageService extends AbstractStorageService {
|
|
|
81
80
|
const profileStorageDatabase = await this.profileStorageDatabase;
|
|
82
81
|
const profileStorage = ( new Storage(profileStorageDatabase));
|
|
83
82
|
this._register(profileStorage.onDidChangeStorage(e => {
|
|
84
|
-
this.emitDidChangeValue(
|
|
83
|
+
this.emitDidChangeValue(StorageScope.PROFILE, e);
|
|
85
84
|
}));
|
|
86
85
|
this._register(toDisposable(() => {
|
|
87
86
|
profileStorage.close();
|
|
@@ -94,7 +93,7 @@ class StorageService extends AbstractStorageService {
|
|
|
94
93
|
return this.profileStorage.init();
|
|
95
94
|
}
|
|
96
95
|
getStorage(scope) {
|
|
97
|
-
return scope ===
|
|
96
|
+
return scope === StorageScope.PROFILE ? this.profileStorage : undefined;
|
|
98
97
|
}
|
|
99
98
|
getLogDetails() { return undefined; }
|
|
100
99
|
async switchToProfile() { }
|
package/vscode/src/vs/workbench/contrib/userDataProfile/browser/media/userDataProfilesEditor.css.js
CHANGED
|
@@ -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 = ".profiles-editor{height:100%;margin:20px auto 0;max-width:1200px;overflow:hidden}.profiles-editor .contents-view,.profiles-editor .sidebar-view{height:100%}.profiles-editor>.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before,.profiles-editor>.monaco-split-view2>.sash-container{top:55px}.profiles-editor .contents-container{height:100%}.profiles-editor .sidebar-container{height:100%;padding-left:20px}.profiles-editor .sidebar-container .new-profile-button{align-items:center;display:flex;height:40px;padding:0 20px 0 18px}.profiles-editor .sidebar-container .new-profile-button>.monaco-button-dropdown{flex-grow:1}.profiles-editor .monaco-button-dropdown>.monaco-dropdown-button{align-items:center;display:flex;padding:0 4px}.profiles-editor .monaco-list-row .profile-tree-item-actions-container{align-items:center;display:none}.profiles-editor .monaco-list-row.focused .profile-tree-item-actions-container,.profiles-editor .monaco-list-row.selected .profile-tree-item-actions-container,.profiles-editor .monaco-list-row:hover .profile-tree-item-actions-container{display:flex}.profiles-editor .sidebar-container .profiles-list{margin-top:15px}.profiles-editor .sidebar-container .profiles-list .profile-list-item{align-items:center;display:flex;padding-left:20px}.profiles-editor .sidebar-container .profiles-list .profile-list-item>*{margin-right:5px}.profiles-editor .sidebar-container .profiles-list .profile-list-item>.profile-list-item-label{overflow:hidden;text-overflow:ellipsis}.profiles-editor .sidebar-container .profiles-list .profile-list-item>.profile-list-item-label.new-profile{font-style:italic}.profiles-editor .sidebar-container .profiles-list .profile-list-item>.profile-list-item-description{align-items:center;display:flex;font-size:.9em;margin-left:2px;opacity:.7}.profiles-editor .sidebar-container .profiles-list .profile-list-item .profile-tree-item-actions-container{flex:1;justify-content:flex-end;margin-right:10px}.profiles-editor .hide{display:none!important}.profiles-editor .contents-container .profile-header{align-items:center;display:flex;height:40px;margin-left:27px}.profiles-editor .contents-container .profile-header .profile-title-container{font-size:26px;font-weight:600}.profiles-editor .contents-container .profile-title-container .monaco-inputbox{flex:1;margin-right:10px}.profiles-editor .contents-container .profile-header .profile-actions-container .actions-container .action-label{padding:6px}.profiles-editor .contents-container .profile-body{margin:15px 0 0 1px}.profiles-editor .contents-container .profile-body .profile-row-container{padding:12px 0}.profiles-editor .contents-container .profile-body .profile-row-container.no-padding-bottom{padding-bottom:0}.profiles-editor .contents-container .profile-body .profile-row-container .profile-label-element{font-weight:600;padding-bottom:5px}.profiles-editor .contents-container .profile-body .profile-row-container .profile-description-element{color:var(--vscode-foreground);opacity:.9}.profiles-editor .contents-container .profile-body .profile-row-container .profile-description-element p,.profiles-editor .contents-container .profile-body .profile-row-container .profile-description-element ul{margin:0}.profiles-editor .contents-container .profile-body .profile-row-container .profile-description-element ul{padding-inline-start:28px}.profiles-editor .contents-container .profile-body .profile-row-container .profile-description-element ul li{padding-left:2px}.profiles-editor .contents-container .profile-body .profile-row-container .monaco-inputbox{width:400px}.profiles-editor .contents-container .profile-body .profile-row-container .profile-icon-container{align-items:center;display:flex;line-height:22px}.profiles-editor .contents-container .profile-body .profile-row-container .profile-icon-container.disabled .codicon{cursor:default}.profiles-editor .contents-container .profile-body .profile-row-container .profile-icon-container .codicon{border-radius:5px;cursor:pointer;margin-right:4px;padding:2px}.profiles-editor .contents-container .profile-body .profile-row-container .profile-icon-container:not(.disabled) .codicon:hover{background-color:var(--vscode-toolbar-hoverBackground);outline:1px dashed var(--vscode-toolbar-hoverOutline)}.profiles-editor .contents-container .profile-body .profile-row-container .profile-icon-container .profile-description-element{margin-top:-1px}.profiles-editor .contents-container .profile-select-container{align-items:center;display:flex;justify-content:center;overflow:hidden}.profiles-editor .contents-container .profile-select-container>.monaco-select-box{border-radius:2px;cursor:pointer;line-height:18px;padding:0 23px 0 8px}.profiles-editor .contents-container .profile-copy-from-container .profile-select-container{margin-top:5px;width:250px}.profiles-editor .contents-container .profile-use-as-default-container,.profiles-editor .contents-container .profile-use-for-current-container{align-items:center;display:flex;line-height:22px}.profiles-editor .contents-container .profile-body .profile-row-container .profile-use-as-default-container .profile-description-element,.profiles-editor .contents-container .profile-body .profile-row-container .profile-use-for-current-container .profile-description-element{margin-top:-1px}.profiles-editor .contents-container .profile-use-as-default-container .profile-use-as-default-label,.profiles-editor .contents-container .profile-use-for-current-container .profile-use-as-default-label{margin-left:2px}.profiles-editor .contents-container .profile-contents-container{margin:0 0 10px 20px}.profiles-editor .contents-container .profile-content-tree-header{align-items:center;border-bottom:1px solid transparent;display:grid;font-weight:700;grid-template-columns:30px repeat(2,1fr) 80px;height:30px;line-height:22px;margin:5px 0 2px}.profiles-editor .contents-container .profile-content-tree-header,.profiles-editor .profile-associations-table .monaco-table-th{background-color:var(--vscode-keybindingTable-headerBackground)}.profiles-editor .contents-container .profile-content-tree-header>.options-header{align-items:center;display:flex}.profiles-editor .contents-container .profile-content-tree-header>.options-header .codicon{cursor:pointer;padding-left:2px}.profiles-editor .contents-container .profile-content-tree-header.default-profile{grid-template-columns:30px repeat(1,1fr) 80px}.profiles-editor .contents-container .profile-content-tree-header.default-profile>.options-header{display:none}.profiles-editor .contents-container .profile-tree-item-container{align-items:center;display:grid;grid-template-columns:repeat(2,1fr) 80px}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree-header{margin-right:1px}.profiles-editor .contents-container .profile-tree-item-container.default-profile,.profiles-editor .contents-container .profile-tree-item-container.profile-resource-child-container{grid-template-columns:repeat(1,1fr) 80px}.profiles-editor .contents-container .profile-tree-item-container .profile-resource-type-description{font-size:.9em;margin-left:10px;opacity:.7}.profiles-editor .contents-container .profile-tree-item-container .profile-resource-options-container{height:fit-content;width:fit-content}.profiles-editor .contents-container .profile-tree-item-container .monaco-custom-radio .monaco-button{outline-offset:-1px!important}.profiles-editor .contents-container .profile-tree-item-container .profile-resource-actions-container{display:none;justify-self:end;padding-right:10px}.profiles-editor .contents-container .profile-content-tree .monaco-list-row.focused .profile-resource-actions-container,.profiles-editor .contents-container .profile-content-tree .monaco-list-row.selected .profile-resource-actions-container,.profiles-editor .contents-container .profile-content-tree .monaco-list-row:hover .profile-resource-actions-container{display:flex}.profiles-editor .contents-container .profile-body .profile-row-container.profile-button-container{align-items:center;display:flex;margin-left:30px;margin-top:10px}.profiles-editor .contents-container .profile-body .profile-row-container.profile-button-container .monaco-button{margin-right:10px;padding:4px 10px;width:inherit}.profiles-editor .profile-associations-table{margin-top:5px}.profiles-editor .profile-associations-table .monaco-table-td,.profiles-editor .profile-associations-table .monaco-table-th{padding:0 5px}.profiles-editor .profile-associations-table .monaco-table-td{align-items:center;display:flex;overflow:hidden}.profiles-editor .profile-associations-table .monaco-list-row .monaco-table-tr .monaco-table-td .profile-workspaces-actions-container{display:none;justify-content:flex-end;padding-right:5px}.profiles-editor .profile-associations-table .monaco-list-row.focused .monaco-table-tr .monaco-table-td .profile-workspaces-actions-container,.profiles-editor .profile-associations-table .monaco-list-row.selected .monaco-table-tr .monaco-table-td .profile-workspaces-actions-container,.profiles-editor .profile-associations-table .monaco-list-row:hover .monaco-table-tr .monaco-table-td .profile-workspaces-actions-container{display:flex}.profiles-editor .profile-associations-table .monaco-table-tr .monaco-table-td .host,.profiles-editor .profile-associations-table .monaco-table-tr .monaco-table-td .path{width:100%}.profiles-editor .profile-associations-table .monaco-table-tr .monaco-table-td .host .host-label,.profiles-editor .profile-associations-table .monaco-table-tr .monaco-table-td .path .path-label{overflow:hidden;text-overflow:ellipsis}.profiles-editor .profile-associations-table .monaco-table-tr .monaco-table-td .current-workspace .host-label,.profiles-editor .profile-associations-table .monaco-table-tr .monaco-table-td .current-workspace .path-label{font-style:italic;font-weight:700}.profiles-editor .contents-container .profile-body .profile-row-container .profile-workspaces-button-container{display:flex;margin:8px 4px}.profiles-editor .contents-container .profile-body .profile-row-container .profile-workspaces-button-container .monaco-button{padding:2px 14px;width:inherit}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row.focused{background-color:var(--vscode-settings-focusedRowBackground)!important}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-associations-table .monaco-list-row[data-parity=odd] .monaco-table-tr{background-color:transparent!important}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row:not(.focused):hover{background-color:var(--vscode-settings-rowHoverBackground)!important}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list:focus .monaco-list-row.focused{outline:1px solid var(--vscode-settings-focusedRowBorder)!important}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-associations-table .monaco-list-row,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row{cursor:default}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-associations-table .monaco-list-row.focused,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-associations-table .monaco-list-row.selected:focus,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-associations-table .monaco-list-row.selected:not(:focus),.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row.focused,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row.selected:focus,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row.selected:not(:focus){background-color:inherit!important;color:inherit!important}.monaco-workbench:not(.hc-black):not(.hc-light) .profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-associations-table .monaco-list-row:hover:not(.selected),.monaco-workbench:not(.hc-black):not(.hc-light) .profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row:hover:not(.selected){background-color:var(--vscode-list-hoverBackground)!important}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-associations-table .monaco-list-row.selected:focus,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row.selected:focus{background-color:var(--vscode-list-activeSelectionBackground)!important;color:var(--vscode-list-activeSelectionForeground)!important}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-associations-table .monaco-list-row.selected:not(:focus),.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row.selected:not(:focus){background-color:var(--vscode-list-inactiveSelectionBackground)!important;color:var(--vscode-list-inactiveSelectionForeground)!important}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row .monaco-tl-twistie.collapsible{cursor:pointer}.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .codicon,.profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row .profile-content-tree .monaco-list-row .codicon{color:inherit!important}.monaco-workbench:not(.reduce-motion) .profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row:hover .profile-associations-table .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .profiles-editor .contents-container .profile-body .profile-tree .monaco-list-row:hover .profile-content-tree-header{border-color:var(--vscode-tree-tableColumnsBorder)!important}";
|
|
4
4
|
n(css,{});
|
package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
2
3
|
import { UserDataProfilesWorkbenchContribution } from './userDataProfile.js';
|
|
3
4
|
import './userDataProfileActions.js';
|
|
4
5
|
|
|
5
|
-
registerWorkbenchContribution2(UserDataProfilesWorkbenchContribution.ID, UserDataProfilesWorkbenchContribution,
|
|
6
|
+
registerWorkbenchContribution2(UserDataProfilesWorkbenchContribution.ID, UserDataProfilesWorkbenchContribution, WorkbenchPhase.BlockRestore);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { MenuId } from "vscode/vscode/vs/platform/actions/common/actions";
|
|
3
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
+
import { IUserDataProfilesService } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
|
|
5
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
6
|
+
import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
7
|
+
import { IUserDataProfileManagementService } from "vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
8
|
+
import { IUserDataProfileService } from "vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
9
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
10
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
11
|
+
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
12
|
+
import { IWorkspaceTagsService } from "vscode/vscode/vs/workbench/contrib/tags/common/workspaceTags.service";
|
|
13
|
+
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
14
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
15
|
+
import { IURLService } from "vscode/vscode/vs/platform/url/common/url.service";
|
|
16
|
+
import { IBrowserWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
17
|
+
export declare const OpenProfileMenu: MenuId;
|
|
18
|
+
export declare class UserDataProfilesWorkbenchContribution extends Disposable implements IWorkbenchContribution {
|
|
19
|
+
private readonly userDataProfileService;
|
|
20
|
+
private readonly userDataProfilesService;
|
|
21
|
+
private readonly userDataProfileManagementService;
|
|
22
|
+
private readonly telemetryService;
|
|
23
|
+
private readonly workspaceContextService;
|
|
24
|
+
private readonly workspaceTagsService;
|
|
25
|
+
private readonly editorGroupsService;
|
|
26
|
+
private readonly instantiationService;
|
|
27
|
+
private readonly lifecycleService;
|
|
28
|
+
private readonly urlService;
|
|
29
|
+
static readonly ID = "workbench.contrib.userDataProfiles";
|
|
30
|
+
private readonly currentProfileContext;
|
|
31
|
+
private readonly isCurrentProfileTransientContext;
|
|
32
|
+
private readonly hasProfilesContext;
|
|
33
|
+
constructor(userDataProfileService: IUserDataProfileService, userDataProfilesService: IUserDataProfilesService, userDataProfileManagementService: IUserDataProfileManagementService, telemetryService: ITelemetryService, workspaceContextService: IWorkspaceContextService, workspaceTagsService: IWorkspaceTagsService, contextKeyService: IContextKeyService, editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService, lifecycleService: ILifecycleService, urlService: IURLService, environmentService: IBrowserWorkbenchEnvironmentService);
|
|
34
|
+
handleURL(uri: URI): Promise<boolean>;
|
|
35
|
+
private openProfilesEditor;
|
|
36
|
+
private registerEditor;
|
|
37
|
+
private registerActions;
|
|
38
|
+
private registerProfileSubMenu;
|
|
39
|
+
private registerOpenProfileSubMenu;
|
|
40
|
+
private readonly profilesDisposable;
|
|
41
|
+
private registerProfilesActions;
|
|
42
|
+
private registerProfileEntryAction;
|
|
43
|
+
private registerNewWindowWithProfileAction;
|
|
44
|
+
private registerNewWindowAction;
|
|
45
|
+
private registerSwitchProfileAction;
|
|
46
|
+
private registerManageProfilesAction;
|
|
47
|
+
private registerExportCurrentProfileAction;
|
|
48
|
+
private registerCreateFromCurrentProfileAction;
|
|
49
|
+
private registerNewProfileAction;
|
|
50
|
+
private registerDeleteProfileAction;
|
|
51
|
+
private registerHelpAction;
|
|
52
|
+
private reportWorkspaceProfileInfo;
|
|
53
|
+
}
|