@codingame/monaco-vscode-user-data-profile-service-override 8.0.4 → 9.0.2

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.
Files changed (19) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/base/browser/ui/radio/radio.js +2 -2
  3. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
  4. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
  5. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/media/userDataProfilesEditor.css.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.js +1 -6
  7. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +73 -372
  8. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +6 -110
  9. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +151 -69
  10. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +93 -56
  11. package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +5 -5
  12. package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +2 -17
  13. package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +1 -1
  14. package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +1 -1
  15. package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +2 -2
  16. package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +1 -1
  17. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +67 -887
  18. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +8 -8
  19. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilePreview.js +0 -24
@@ -40,7 +40,7 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
40
40
  const updatedCurrentProfile = e.updated.find(p => this.userDataProfileService.currentProfile.id === p.id);
41
41
  if (updatedCurrentProfile) {
42
42
  this.changeCurrentProfile(updatedCurrentProfile, ( localize(
43
- 3661,
43
+ 3694,
44
44
  "The current profile has been updated. Please reload to switch back to the updated profile"
45
45
  )));
46
46
  }
@@ -49,7 +49,7 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
49
49
  onDidChangeProfiles(e) {
50
50
  if (( (e.removed.some(profile => profile.id === this.userDataProfileService.currentProfile.id)))) {
51
51
  this.changeCurrentProfile(this.userDataProfilesService.defaultProfile, ( localize(
52
- 3662,
52
+ 3695,
53
53
  "The current profile has been removed. Please reload to switch back to default profile"
54
54
  )));
55
55
  return;
@@ -58,7 +58,7 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
58
58
  onDidResetWorkspaces() {
59
59
  if (!this.userDataProfileService.currentProfile.isDefault) {
60
60
  this.changeCurrentProfile(this.userDataProfilesService.defaultProfile, ( localize(
61
- 3662,
61
+ 3695,
62
62
  "The current profile has been removed. Please reload to switch back to default profile"
63
63
  )));
64
64
  return;
@@ -89,7 +89,7 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
89
89
  throw ( (new Error(`Profile ${profile.name} does not exist`)));
90
90
  }
91
91
  if (profile.isDefault) {
92
- throw ( (new Error(localize(3663, "Cannot rename the default profile"))));
92
+ throw ( (new Error(localize(3696, "Cannot rename the default profile"))));
93
93
  }
94
94
  const updatedProfile = await this.userDataProfilesService.updateProfile(profile, updateOptions);
95
95
  this.telemetryService.publicLog2('profileManagementActionExecuted', { id: 'updateProfile' });
@@ -100,7 +100,7 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
100
100
  throw ( (new Error(`Profile ${profile.name} does not exist`)));
101
101
  }
102
102
  if (profile.isDefault) {
103
- throw ( (new Error(localize(3664, "Cannot delete the default profile"))));
103
+ throw ( (new Error(localize(3697, "Cannot delete the default profile"))));
104
104
  }
105
105
  await this.userDataProfilesService.removeProfile(profile);
106
106
  this.telemetryService.publicLog2('profileManagementActionExecuted', { id: 'removeProfile' });
@@ -139,7 +139,7 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
139
139
  const shouldRestartExtensionHosts = this.userDataProfileService.currentProfile.id !== profile.id || !equals(this.userDataProfileService.currentProfile.useDefaultFlags, profile.useDefaultFlags);
140
140
  if (shouldRestartExtensionHosts) {
141
141
  if (!isRemoteWindow) {
142
- if (!(await this.extensionService.stopExtensionHosts(( localize(3665, "Switching to a profile."))))) {
142
+ if (!(await this.extensionService.stopExtensionHosts(( localize(3698, "Switching to a profile."))))) {
143
143
  if (( (this.userDataProfilesService.profiles.some(p => p.id === this.userDataProfileService.currentProfile.id)))) {
144
144
  await this.userDataProfilesService.setProfileForWorkspace(toWorkspaceIdentifier(this.workspaceContextService.getWorkspace()), this.userDataProfileService.currentProfile);
145
145
  }
@@ -151,8 +151,8 @@ let UserDataProfileManagementService = class UserDataProfileManagementService ex
151
151
  if (shouldRestartExtensionHosts) {
152
152
  if (isRemoteWindow) {
153
153
  const { confirmed } = await this.dialogService.confirm({
154
- message: reloadMessage ?? ( localize(3666, "Switching a profile requires reloading VS Code.")),
155
- primaryButton: ( localize(3667, "&&Reload")),
154
+ message: reloadMessage ?? ( localize(3699, "Switching a profile requires reloading VS Code.")),
155
+ primaryButton: ( localize(3700, "&&Reload")),
156
156
  });
157
157
  if (confirmed) {
158
158
  await this.hostService.reload();
@@ -1,24 +0,0 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { getErrorMessage } from 'vscode/vscode/vs/base/common/errors';
3
- import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
- import { URI } from 'vscode/vscode/vs/base/common/uri';
5
- import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
6
- import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
7
- import { IUserDataProfileImportExportService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
8
-
9
- let UserDataProfilePreviewContribution = class UserDataProfilePreviewContribution extends Disposable {
10
- constructor(environmentService, userDataProfileImportExportService, logService) {
11
- super();
12
- if (environmentService.options?.profileToPreview) {
13
- userDataProfileImportExportService.importProfile(URI.revive(environmentService.options.profileToPreview), { mode: 'both' })
14
- .then(null, error => logService.error('Error while previewing the profile', getErrorMessage(error)));
15
- }
16
- }
17
- };
18
- UserDataProfilePreviewContribution = ( __decorate([
19
- ( __param(0, IBrowserWorkbenchEnvironmentService)),
20
- ( __param(1, IUserDataProfileImportExportService)),
21
- ( __param(2, ILogService))
22
- ], UserDataProfilePreviewContribution));
23
-
24
- export { UserDataProfilePreviewContribution };