@codingame/monaco-vscode-user-data-profile-service-override 6.0.3 → 7.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 +2 -2
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +41 -20
- package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/media/userDataProfilesEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +193 -87
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +349 -253
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +452 -125
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +24 -6
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +190 -92
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +5 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.js +1 -1
package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js
CHANGED
|
@@ -73,6 +73,9 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
|
|
|
73
73
|
await this.userDataProfilesService.cleanUpTransientProfiles();
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
async createProfile(name, options) {
|
|
77
|
+
return this.userDataProfilesService.createNamedProfile(name, options);
|
|
78
|
+
}
|
|
76
79
|
async createAndEnterProfile(name, options) {
|
|
77
80
|
const profile = await this.userDataProfilesService.createNamedProfile(name, options, toWorkspaceIdentifier(this.workspaceContextService.getWorkspace()));
|
|
78
81
|
await this.changeCurrentProfile(profile);
|
|
@@ -92,8 +95,9 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
|
|
|
92
95
|
if (profile.isDefault) {
|
|
93
96
|
throw ( (new Error(localizeWithPath(_moduleId, 2, "Cannot rename the default profile"))));
|
|
94
97
|
}
|
|
95
|
-
await this.userDataProfilesService.updateProfile(profile, updateOptions);
|
|
98
|
+
const updatedProfile = await this.userDataProfilesService.updateProfile(profile, updateOptions);
|
|
96
99
|
this.telemetryService.publicLog2('profileManagementActionExecuted', { id: 'updateProfile' });
|
|
100
|
+
return updatedProfile;
|
|
97
101
|
}
|
|
98
102
|
async removeProfile(profile) {
|
|
99
103
|
if (!( (this.userDataProfilesService.profiles.some(p => p.id === profile.id)))) {
|
package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.js
CHANGED
|
@@ -12,7 +12,7 @@ import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
|
12
12
|
|
|
13
13
|
let UserDataProfileStorageService = class UserDataProfileStorageService extends AbstractUserDataProfileStorageService {
|
|
14
14
|
constructor(storageService, userDataProfileService, logService) {
|
|
15
|
-
super(storageService);
|
|
15
|
+
super(true, storageService);
|
|
16
16
|
this.userDataProfileService = userDataProfileService;
|
|
17
17
|
this.logService = logService;
|
|
18
18
|
this._onDidChange = this._register(( new Emitter()));
|