@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.
@@ -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)))) {
@@ -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()));