@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.
- 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
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
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 {
|
|
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 = (
|
|
28
|
-
(
|
|
29
|
-
(
|
|
30
|
-
(
|
|
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] = (
|
|
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 ===
|
|
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 = (
|
|
85
|
-
(
|
|
86
|
-
(
|
|
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 =
|
|
94
|
-
this.handle = (
|
|
95
|
-
this.label = { label: ( localize(
|
|
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 = (
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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 = (
|
|
149
|
-
(
|
|
150
|
-
(
|
|
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
|
-
|
|
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 {
|
|
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 = (
|
|
29
|
-
(
|
|
30
|
-
(
|
|
31
|
-
(
|
|
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 ===
|
|
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 = (
|
|
72
|
-
(
|
|
73
|
-
(
|
|
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 =
|
|
81
|
-
this.handle =
|
|
82
|
-
this.label = { label: ( localize(
|
|
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: (
|
|
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 = (
|
|
113
|
-
(
|
|
114
|
-
(
|
|
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 {};
|