@codingame/monaco-vscode-user-data-profile-service-override 11.1.2 → 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.
Files changed (50) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +126 -1
  3. package/package.json +31 -8
  4. package/vscode/src/vs/base/browser/ui/radio/radio.css.js +1 -1
  5. package/vscode/src/vs/base/browser/ui/radio/radio.d.ts +37 -0
  6. package/vscode/src/vs/base/browser/ui/radio/radio.js +1 -0
  7. package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.d.ts +16 -0
  8. package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js +3 -2
  9. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.d.ts +42 -0
  10. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +10 -11
  11. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/media/userDataProfilesEditor.css.js +1 -1
  12. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.d.ts +1 -0
  13. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.js +3 -2
  14. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.d.ts +53 -0
  15. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +65 -63
  16. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.d.ts +1 -0
  17. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +5 -4
  18. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.d.ts +73 -0
  19. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +298 -307
  20. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.d.ts +236 -0
  21. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +168 -166
  22. package/vscode/src/vs/workbench/contrib/userDataProfile/common/userDataProfile.d.ts +7 -0
  23. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +19 -0
  24. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +4 -2
  25. package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.d.ts +77 -0
  26. package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +83 -82
  27. package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.d.ts +58 -0
  28. package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +31 -28
  29. package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.d.ts +47 -0
  30. package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +24 -24
  31. package/vscode/src/vs/workbench/services/userDataProfile/browser/media/userDataProfileView.css.js +1 -1
  32. package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.d.ts +48 -0
  33. package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +29 -29
  34. package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.d.ts +43 -0
  35. package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +54 -54
  36. package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.d.ts +45 -0
  37. package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +24 -24
  38. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.d.ts +63 -0
  39. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +106 -111
  40. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.d.ts +32 -0
  41. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +11 -8
  42. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.d.ts +58 -0
  43. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +35 -33
  44. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.d.ts +18 -0
  45. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.js +7 -5
  46. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.d.ts +45 -0
  47. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +25 -22
  48. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.d.ts +18 -0
  49. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +3 -1
  50. package/userDataProfile.js +0 -125
@@ -1,12 +1,14 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
3
4
  import { ResourceSet } from 'vscode/vscode/vs/base/common/map';
4
5
  import { localize } from 'vscode/vscode/vs/nls';
5
- import { FileOperationError } from 'vscode/vscode/vs/platform/files/common/files';
6
+ import { FileOperationError, FileOperationResult } from 'vscode/vscode/vs/platform/files/common/files';
6
7
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
7
8
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
8
9
  import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
9
- import { API_OPEN_EDITOR_COMMAND_ID } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
10
+ import { ProfileResourceType } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile';
11
+ import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
10
12
  import { TreeItemCollapsibleState } from 'vscode/vscode/vs/workbench/common/views';
11
13
  import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
12
14
 
@@ -24,11 +26,11 @@ let SnippetsResourceInitializer = class SnippetsResourceInitializer {
24
26
  }
25
27
  }
26
28
  };
27
- SnippetsResourceInitializer = ( (__decorate([
28
- ( (__param(0, IUserDataProfileService))),
29
- ( (__param(1, IFileService))),
30
- ( (__param(2, IUriIdentityService)))
31
- ], SnippetsResourceInitializer)));
29
+ SnippetsResourceInitializer = ( __decorate([
30
+ ( __param(0, IUserDataProfileService)),
31
+ ( __param(1, IFileService)),
32
+ ( __param(2, IUriIdentityService))
33
+ ], SnippetsResourceInitializer));
32
34
  let SnippetsResource = class SnippetsResource {
33
35
  constructor(fileService, uriIdentityService) {
34
36
  this.fileService = fileService;
@@ -51,7 +53,7 @@ let SnippetsResource = class SnippetsResource {
51
53
  for (const resource of snippetsResources) {
52
54
  const key = this.uriIdentityService.extUri.relativePath(profile.snippetsHome, resource);
53
55
  const content = await this.fileService.readFile(resource);
54
- snippets[key] = ( (content.value.toString()));
56
+ snippets[key] = ( content.value.toString());
55
57
  }
56
58
  return snippets;
57
59
  }
@@ -62,7 +64,7 @@ let SnippetsResource = class SnippetsResource {
62
64
  stat = await this.fileService.resolve(profile.snippetsHome);
63
65
  }
64
66
  catch (e) {
65
- if (e instanceof FileOperationError && e.fileOperationResult === 1 ) {
67
+ if (e instanceof FileOperationError && e.fileOperationResult === FileOperationResult.FILE_NOT_FOUND) {
66
68
  return snippets;
67
69
  }
68
70
  else {
@@ -81,58 +83,56 @@ let SnippetsResource = class SnippetsResource {
81
83
  return snippets;
82
84
  }
83
85
  };
84
- SnippetsResource = ( (__decorate([
85
- ( (__param(0, IFileService))),
86
- ( (__param(1, IUriIdentityService)))
87
- ], SnippetsResource)));
86
+ SnippetsResource = ( __decorate([
87
+ ( __param(0, IFileService)),
88
+ ( __param(1, IUriIdentityService))
89
+ ], SnippetsResource));
88
90
  let SnippetsResourceTreeItem = class SnippetsResourceTreeItem {
89
91
  constructor(profile, instantiationService, uriIdentityService) {
90
92
  this.profile = profile;
91
93
  this.instantiationService = instantiationService;
92
94
  this.uriIdentityService = uriIdentityService;
93
- this.type = "snippets" ;
94
- this.handle = ( (this.profile.snippetsHome.toString()));
95
- this.label = { label: ( localize(9000, "Snippets")) };
95
+ this.type = ProfileResourceType.Snippets;
96
+ this.handle = ( this.profile.snippetsHome.toString());
97
+ this.label = { label: ( localize(11980, "Snippets")) };
96
98
  this.collapsibleState = TreeItemCollapsibleState.Collapsed;
97
- this.excludedSnippets = ( (new ResourceSet()));
99
+ this.excludedSnippets = ( new ResourceSet());
98
100
  }
99
101
  async getChildren() {
100
102
  const snippetsResources = await this.instantiationService.createInstance(SnippetsResource).getSnippetsResources(this.profile);
101
103
  const that = this;
102
- return (
103
- (snippetsResources.map(resource => ({
104
- handle: ( (resource.toString())),
105
- parent: that,
106
- resourceUri: resource,
107
- collapsibleState: TreeItemCollapsibleState.None,
108
- accessibilityInformation: {
109
- label: this.uriIdentityService.extUri.basename(resource),
110
- },
111
- checkbox: that.checkbox ? {
112
- get isChecked() { return !( (that.excludedSnippets.has(resource))); },
113
- set isChecked(value) {
114
- if (value) {
115
- that.excludedSnippets.delete(resource);
116
- }
117
- else {
118
- that.excludedSnippets.add(resource);
119
- }
120
- },
121
- accessibilityInformation: {
122
- label: ( localize(
123
- 9001,
124
- "Select Snippet {0}",
125
- this.uriIdentityService.extUri.basename(resource)
126
- )),
104
+ return (snippetsResources.map(resource => ({
105
+ handle: ( resource.toString()),
106
+ parent: that,
107
+ resourceUri: resource,
108
+ collapsibleState: TreeItemCollapsibleState.None,
109
+ accessibilityInformation: {
110
+ label: this.uriIdentityService.extUri.basename(resource),
111
+ },
112
+ checkbox: that.checkbox ? {
113
+ get isChecked() { return !( that.excludedSnippets.has(resource)); },
114
+ set isChecked(value) {
115
+ if (value) {
116
+ that.excludedSnippets.delete(resource);
117
+ }
118
+ else {
119
+ that.excludedSnippets.add(resource);
127
120
  }
128
- } : undefined,
129
- command: {
130
- id: API_OPEN_EDITOR_COMMAND_ID,
131
- title: '',
132
- arguments: [resource, undefined, undefined]
121
+ },
122
+ accessibilityInformation: {
123
+ label: ( localize(
124
+ 11981,
125
+ "Select Snippet {0}",
126
+ this.uriIdentityService.extUri.basename(resource)
127
+ )),
133
128
  }
134
- })))
135
- );
129
+ } : undefined,
130
+ command: {
131
+ id: API_OPEN_EDITOR_COMMAND_ID,
132
+ title: '',
133
+ arguments: [resource, undefined, undefined]
134
+ }
135
+ })));
136
136
  }
137
137
  async hasContent() {
138
138
  const snippetsResources = await this.instantiationService.createInstance(SnippetsResource).getSnippetsResources(this.profile);
@@ -145,9 +145,9 @@ let SnippetsResourceTreeItem = class SnippetsResourceTreeItem {
145
145
  return !this.profile.isDefault && !!this.profile.useDefaultFlags?.snippets;
146
146
  }
147
147
  };
148
- SnippetsResourceTreeItem = ( (__decorate([
149
- ( (__param(1, IInstantiationService))),
150
- ( (__param(2, IUriIdentityService)))
151
- ], SnippetsResourceTreeItem)));
148
+ SnippetsResourceTreeItem = ( __decorate([
149
+ ( __param(1, IInstantiationService)),
150
+ ( __param(2, IUriIdentityService))
151
+ ], SnippetsResourceTreeItem));
152
152
 
153
153
  export { SnippetsResource, SnippetsResourceInitializer, SnippetsResourceTreeItem };
@@ -0,0 +1,45 @@
1
+ import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
2
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
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, ProfileResourceType } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile";
6
+ import { ITreeItemCheckboxState, TreeItemCollapsibleState } from "vscode/vscode/vs/workbench/common/views";
7
+ import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
8
+ import { IUserDataProfileService } from "vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
9
+ interface ITasksResourceContent {
10
+ tasks: string | null;
11
+ }
12
+ export declare class TasksResourceInitializer implements IProfileResourceInitializer {
13
+ private readonly userDataProfileService;
14
+ private readonly fileService;
15
+ private readonly logService;
16
+ constructor(userDataProfileService: IUserDataProfileService, fileService: IFileService, logService: ILogService);
17
+ initialize(content: string): Promise<void>;
18
+ }
19
+ export declare class TasksResource implements IProfileResource {
20
+ private readonly fileService;
21
+ private readonly logService;
22
+ constructor(fileService: IFileService, logService: ILogService);
23
+ getContent(profile: IUserDataProfile): Promise<string>;
24
+ getTasksResourceContent(profile: IUserDataProfile): Promise<ITasksResourceContent>;
25
+ apply(content: string, profile: IUserDataProfile): Promise<void>;
26
+ private getTasksContent;
27
+ }
28
+ export declare class TasksResourceTreeItem implements IProfileResourceTreeItem {
29
+ private readonly profile;
30
+ private readonly uriIdentityService;
31
+ private readonly instantiationService;
32
+ readonly type = ProfileResourceType.Tasks;
33
+ readonly handle = ProfileResourceType.Tasks;
34
+ readonly label: {
35
+ label: string;
36
+ };
37
+ readonly collapsibleState = TreeItemCollapsibleState.Expanded;
38
+ checkbox: ITreeItemCheckboxState | undefined;
39
+ constructor(profile: IUserDataProfile, uriIdentityService: IUriIdentityService, instantiationService: IInstantiationService);
40
+ getChildren(): Promise<IProfileResourceChildTreeItem[]>;
41
+ hasContent(): Promise<boolean>;
42
+ getContent(): Promise<string>;
43
+ isFromDefaultProfile(): boolean;
44
+ }
45
+ export {};
@@ -1,12 +1,14 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
3
4
  import { localize } from 'vscode/vscode/vs/nls';
4
- import { FileOperationError } from 'vscode/vscode/vs/platform/files/common/files';
5
+ import { FileOperationError, FileOperationResult } from 'vscode/vscode/vs/platform/files/common/files';
5
6
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
6
7
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
7
8
  import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
8
9
  import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
9
- import { API_OPEN_EDITOR_COMMAND_ID } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
10
+ import { ProfileResourceType } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile';
11
+ import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
10
12
  import { TreeItemCollapsibleState } from 'vscode/vscode/vs/workbench/common/views';
11
13
  import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
12
14
 
@@ -25,11 +27,11 @@ let TasksResourceInitializer = class TasksResourceInitializer {
25
27
  await this.fileService.writeFile(this.userDataProfileService.currentProfile.tasksResource, VSBuffer.fromString(tasksContent.tasks));
26
28
  }
27
29
  };
28
- TasksResourceInitializer = ( (__decorate([
29
- ( (__param(0, IUserDataProfileService))),
30
- ( (__param(1, IFileService))),
31
- ( (__param(2, ILogService)))
32
- ], TasksResourceInitializer)));
30
+ TasksResourceInitializer = ( __decorate([
31
+ ( __param(0, IUserDataProfileService)),
32
+ ( __param(1, IFileService)),
33
+ ( __param(2, ILogService))
34
+ ], TasksResourceInitializer));
33
35
  let TasksResource = class TasksResource {
34
36
  constructor(fileService, logService) {
35
37
  this.fileService = fileService;
@@ -54,12 +56,10 @@ let TasksResource = class TasksResource {
54
56
  async getTasksContent(profile) {
55
57
  try {
56
58
  const content = await this.fileService.readFile(profile.tasksResource);
57
- return (
58
- (content.value.toString())
59
- );
59
+ return ( content.value.toString());
60
60
  }
61
61
  catch (error) {
62
- if (error instanceof FileOperationError && error.fileOperationResult === 1 ) {
62
+ if (error instanceof FileOperationError && error.fileOperationResult === FileOperationResult.FILE_NOT_FOUND) {
63
63
  return null;
64
64
  }
65
65
  else {
@@ -68,23 +68,23 @@ let TasksResource = class TasksResource {
68
68
  }
69
69
  }
70
70
  };
71
- TasksResource = ( (__decorate([
72
- ( (__param(0, IFileService))),
73
- ( (__param(1, ILogService)))
74
- ], TasksResource)));
71
+ TasksResource = ( __decorate([
72
+ ( __param(0, IFileService)),
73
+ ( __param(1, ILogService))
74
+ ], TasksResource));
75
75
  let TasksResourceTreeItem = class TasksResourceTreeItem {
76
76
  constructor(profile, uriIdentityService, instantiationService) {
77
77
  this.profile = profile;
78
78
  this.uriIdentityService = uriIdentityService;
79
79
  this.instantiationService = instantiationService;
80
- this.type = "tasks" ;
81
- this.handle = "tasks" ;
82
- this.label = { label: ( localize(8999, "Tasks")) };
80
+ this.type = ProfileResourceType.Tasks;
81
+ this.handle = ProfileResourceType.Tasks;
82
+ this.label = { label: ( localize(11982, "Tasks")) };
83
83
  this.collapsibleState = TreeItemCollapsibleState.Expanded;
84
84
  }
85
85
  async getChildren() {
86
86
  return [{
87
- handle: ( (this.profile.tasksResource.toString())),
87
+ handle: ( this.profile.tasksResource.toString()),
88
88
  resourceUri: this.profile.tasksResource,
89
89
  collapsibleState: TreeItemCollapsibleState.None,
90
90
  parent: this,
@@ -109,9 +109,9 @@ let TasksResourceTreeItem = class TasksResourceTreeItem {
109
109
  return !this.profile.isDefault && !!this.profile.useDefaultFlags?.tasks;
110
110
  }
111
111
  };
112
- TasksResourceTreeItem = ( (__decorate([
113
- ( (__param(1, IUriIdentityService))),
114
- ( (__param(2, IInstantiationService)))
115
- ], TasksResourceTreeItem)));
112
+ TasksResourceTreeItem = ( __decorate([
113
+ ( __param(1, IUriIdentityService)),
114
+ ( __param(2, IInstantiationService))
115
+ ], TasksResourceTreeItem));
116
116
 
117
117
  export { TasksResource, TasksResourceInitializer, TasksResourceTreeItem };
@@ -0,0 +1,63 @@
1
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
2
+ import { IUserDataProfileContentHandler, IProfileImportOptions, IUserDataProfileCreateOptions } from "@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
3
+ import { IUserDataProfileImportExportService } from "vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
4
+ import { IUserDataProfileManagementService } from "vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
5
+ import { IUserDataProfileService } from "vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
6
+ import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
7
+ import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
8
+ import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
9
+ import { URI } from "vscode/vscode/vs/base/common/uri";
10
+ import { IUserDataProfile, ProfileResourceTypeFlags } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile";
11
+ import { IUserDataProfilesService } from "vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service";
12
+ import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
13
+ import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
14
+ import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
15
+ import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
16
+ import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
17
+ import { IClipboardService } from "vscode/vscode/vs/platform/clipboard/common/clipboardService.service";
18
+ import { IRequestService } from "vscode/vscode/vs/platform/request/common/request.service";
19
+ import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
20
+ interface IUserDataProfileTemplate {
21
+ readonly name: string;
22
+ readonly icon?: string;
23
+ readonly settings?: string;
24
+ readonly keybindings?: string;
25
+ readonly tasks?: string;
26
+ readonly snippets?: string;
27
+ readonly globalState?: string;
28
+ readonly extensions?: string;
29
+ }
30
+ export declare class UserDataProfileImportExportService extends Disposable implements IUserDataProfileImportExportService {
31
+ private readonly instantiationService;
32
+ private readonly userDataProfileService;
33
+ private readonly userDataProfileManagementService;
34
+ private readonly userDataProfilesService;
35
+ private readonly extensionService;
36
+ private readonly quickInputService;
37
+ private readonly progressService;
38
+ private readonly dialogService;
39
+ private readonly clipboardService;
40
+ private readonly openerService;
41
+ private readonly requestService;
42
+ private readonly productService;
43
+ private readonly uriIdentityService;
44
+ readonly _serviceBrand: undefined;
45
+ private profileContentHandlers;
46
+ private readonly fileUserDataProfileContentHandler;
47
+ constructor(instantiationService: IInstantiationService, userDataProfileService: IUserDataProfileService, userDataProfileManagementService: IUserDataProfileManagementService, userDataProfilesService: IUserDataProfilesService, extensionService: IExtensionService, quickInputService: IQuickInputService, progressService: IProgressService, dialogService: IDialogService, clipboardService: IClipboardService, openerService: IOpenerService, requestService: IRequestService, productService: IProductService, uriIdentityService: IUriIdentityService);
48
+ registerProfileContentHandler(id: string, profileContentHandler: IUserDataProfileContentHandler): IDisposable;
49
+ unregisterProfileContentHandler(id: string): void;
50
+ createFromProfile(from: IUserDataProfile, options: IUserDataProfileCreateOptions, token: CancellationToken): Promise<IUserDataProfile | undefined>;
51
+ createProfileFromTemplate(profileTemplate: IUserDataProfileTemplate, options: IUserDataProfileCreateOptions, token: CancellationToken): Promise<IUserDataProfile | undefined>;
52
+ private applyProfileTemplate;
53
+ exportProfile(profile: IUserDataProfile, exportFlags?: ProfileResourceTypeFlags): Promise<void>;
54
+ createTroubleshootProfile(): Promise<void>;
55
+ private doExportProfile;
56
+ resolveProfileTemplate(uri: URI, options?: IProfileImportOptions): Promise<IUserDataProfileTemplate | null>;
57
+ private doCreateProfile;
58
+ private resolveProfileContent;
59
+ private pickProfileContentHandler;
60
+ private getProfileToImport;
61
+ private getProfileNameIndex;
62
+ }
63
+ export {};