@codingame/monaco-vscode-user-data-sync-service-override 1.85.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 (53) hide show
  1. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +3 -0
  2. package/external/tslib/tslib.es6.js +11 -0
  3. package/index.d.ts +1 -0
  4. package/index.js +1 -0
  5. package/override/vs/platform/dialogs/common/dialogs.js +8 -0
  6. package/override/vs/platform/userDataSync/common/extensionsSync.js +4 -0
  7. package/override/vs/platform/userDataSync/common/globalStateSync.js +5 -0
  8. package/package.json +24 -0
  9. package/userDataSync.d.ts +5 -0
  10. package/userDataSync.js +106 -0
  11. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +6 -0
  12. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +248 -0
  13. package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js +95 -0
  14. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +5 -0
  15. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +774 -0
  16. package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +251 -0
  17. package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +115 -0
  18. package/vscode/src/vs/platform/userDataSync/common/keybindingsMerge.js +277 -0
  19. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +318 -0
  20. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +316 -0
  21. package/vscode/src/vs/platform/userDataSync/common/snippetsMerge.js +126 -0
  22. package/vscode/src/vs/platform/userDataSync/common/snippetsSync.js +476 -0
  23. package/vscode/src/vs/platform/userDataSync/common/tasksSync.js +244 -0
  24. package/vscode/src/vs/platform/userDataSync/common/userDataAutoSyncService.js +466 -0
  25. package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestMerge.js +92 -0
  26. package/vscode/src/vs/platform/userDataSync/common/userDataProfilesManifestSync.js +261 -0
  27. package/vscode/src/vs/platform/userDataSync/common/userDataSyncEnablementService.js +77 -0
  28. package/vscode/src/vs/platform/userDataSync/common/userDataSyncLocalStoreService.js +150 -0
  29. package/vscode/src/vs/platform/userDataSync/common/userDataSyncLog.js +41 -0
  30. package/vscode/src/vs/platform/userDataSync/common/userDataSyncResourceProvider.js +449 -0
  31. package/vscode/src/vs/platform/userDataSync/common/userDataSyncService.js +783 -0
  32. package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +553 -0
  33. package/vscode/src/vs/workbench/browser/iconSelectBox.js +98 -0
  34. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.contribution.js +111 -0
  35. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSync.js +1467 -0
  36. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncConflictsView.js +225 -0
  37. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncTrigger.js +61 -0
  38. package/vscode/src/vs/workbench/contrib/userDataSync/browser/userDataSyncViews.js +860 -0
  39. package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +342 -0
  40. package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +147 -0
  41. package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +119 -0
  42. package/vscode/src/vs/workbench/services/userDataProfile/browser/media/userDataProfileView.css.js +6 -0
  43. package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +140 -0
  44. package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +155 -0
  45. package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +118 -0
  46. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +1753 -0
  47. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +150 -0
  48. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +190 -0
  49. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncEnablementService.js +10 -0
  50. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +447 -0
  51. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.js +786 -0
  52. package/vscode/src/vs/workbench/services/userDataSync/browser/webUserDataSyncEnablementService.js +40 -0
  53. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +48 -0
@@ -0,0 +1,140 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
3
+ import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
4
+ import { FileOperationError, IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
5
+ import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
6
+ import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
7
+ import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
8
+ import { updateIgnoredSettings } from 'vscode/vscode/vs/platform/userDataSync/common/settingsMerge';
9
+ import { IUserDataSyncUtilService } from 'vscode/vscode/vs/platform/userDataSync/common/userDataSync';
10
+ import { TreeItemCollapsibleState } from 'vscode/vscode/vs/workbench/common/views';
11
+ import { API_OPEN_EDITOR_COMMAND_ID } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
12
+ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
13
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
14
+ import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
15
+
16
+ let SettingsResourceInitializer = class SettingsResourceInitializer {
17
+ constructor(userDataProfileService, fileService, logService) {
18
+ this.userDataProfileService = userDataProfileService;
19
+ this.fileService = fileService;
20
+ this.logService = logService;
21
+ }
22
+ async initialize(content) {
23
+ const settingsContent = JSON.parse(content);
24
+ if (settingsContent.settings === null) {
25
+ this.logService.info(`Initializing Profile: No settings to apply...`);
26
+ return;
27
+ }
28
+ await this.fileService.writeFile(this.userDataProfileService.currentProfile.settingsResource, VSBuffer.fromString(settingsContent.settings));
29
+ }
30
+ };
31
+ SettingsResourceInitializer = ( __decorate([
32
+ ( __param(0, IUserDataProfileService)),
33
+ ( __param(1, IFileService)),
34
+ ( __param(2, ILogService))
35
+ ], SettingsResourceInitializer));
36
+ let SettingsResource = class SettingsResource {
37
+ constructor(fileService, userDataSyncUtilService, logService) {
38
+ this.fileService = fileService;
39
+ this.userDataSyncUtilService = userDataSyncUtilService;
40
+ this.logService = logService;
41
+ }
42
+ async getContent(profile) {
43
+ const settingsContent = await this.getSettingsContent(profile);
44
+ return JSON.stringify(settingsContent);
45
+ }
46
+ async getSettingsContent(profile) {
47
+ const localContent = await this.getLocalFileContent(profile);
48
+ if (localContent === null) {
49
+ return { settings: null };
50
+ }
51
+ else {
52
+ const ignoredSettings = this.getIgnoredSettings();
53
+ const formattingOptions = await this.userDataSyncUtilService.resolveFormattingOptions(profile.settingsResource);
54
+ const settings = updateIgnoredSettings(localContent || '{}', '{}', ignoredSettings, formattingOptions);
55
+ return { settings };
56
+ }
57
+ }
58
+ async apply(content, profile) {
59
+ const settingsContent = JSON.parse(content);
60
+ if (settingsContent.settings === null) {
61
+ this.logService.info(`Importing Profile (${profile.name}): No settings to apply...`);
62
+ return;
63
+ }
64
+ const localSettingsContent = await this.getLocalFileContent(profile);
65
+ const formattingOptions = await this.userDataSyncUtilService.resolveFormattingOptions(profile.settingsResource);
66
+ const contentToUpdate = updateIgnoredSettings(settingsContent.settings, localSettingsContent || '{}', this.getIgnoredSettings(), formattingOptions);
67
+ await this.fileService.writeFile(profile.settingsResource, VSBuffer.fromString(contentToUpdate));
68
+ }
69
+ getIgnoredSettings() {
70
+ const allSettings = ( Registry.as(Extensions.Configuration)).getConfigurationProperties();
71
+ const ignoredSettings = ( Object.keys(allSettings)).filter(key => allSettings[key]?.scope === 2 || allSettings[key]?.scope === 6 );
72
+ return ignoredSettings;
73
+ }
74
+ async getLocalFileContent(profile) {
75
+ try {
76
+ const content = await this.fileService.readFile(profile.settingsResource);
77
+ return ( content.value.toString());
78
+ }
79
+ catch (error) {
80
+ if (error instanceof FileOperationError && error.fileOperationResult === 1 ) {
81
+ return null;
82
+ }
83
+ else {
84
+ throw error;
85
+ }
86
+ }
87
+ }
88
+ };
89
+ SettingsResource = ( __decorate([
90
+ ( __param(0, IFileService)),
91
+ ( __param(1, IUserDataSyncUtilService)),
92
+ ( __param(2, ILogService))
93
+ ], SettingsResource));
94
+ let SettingsResourceTreeItem = class SettingsResourceTreeItem {
95
+ constructor(profile, uriIdentityService, instantiationService) {
96
+ this.profile = profile;
97
+ this.uriIdentityService = uriIdentityService;
98
+ this.instantiationService = instantiationService;
99
+ this.type = "settings" ;
100
+ this.handle = "settings" ;
101
+ this.label = { label: ( localizeWithPath(
102
+ 'vs/workbench/services/userDataProfile/browser/settingsResource',
103
+ 'settings',
104
+ "Settings"
105
+ )) };
106
+ this.collapsibleState = TreeItemCollapsibleState.Expanded;
107
+ }
108
+ async getChildren() {
109
+ return [{
110
+ handle: ( this.profile.settingsResource.toString()),
111
+ resourceUri: this.profile.settingsResource,
112
+ collapsibleState: TreeItemCollapsibleState.None,
113
+ parent: this,
114
+ accessibilityInformation: {
115
+ label: this.uriIdentityService.extUri.basename(this.profile.settingsResource)
116
+ },
117
+ command: {
118
+ id: API_OPEN_EDITOR_COMMAND_ID,
119
+ title: '',
120
+ arguments: [this.profile.settingsResource, undefined, undefined]
121
+ }
122
+ }];
123
+ }
124
+ async hasContent() {
125
+ const settingsContent = await this.instantiationService.createInstance(SettingsResource).getSettingsContent(this.profile);
126
+ return settingsContent.settings !== null;
127
+ }
128
+ async getContent() {
129
+ return this.instantiationService.createInstance(SettingsResource).getContent(this.profile);
130
+ }
131
+ isFromDefaultProfile() {
132
+ return !this.profile.isDefault && !!this.profile.useDefaultFlags?.settings;
133
+ }
134
+ };
135
+ SettingsResourceTreeItem = ( __decorate([
136
+ ( __param(1, IUriIdentityService)),
137
+ ( __param(2, IInstantiationService))
138
+ ], SettingsResourceTreeItem));
139
+
140
+ export { SettingsResource, SettingsResourceInitializer, SettingsResourceTreeItem };
@@ -0,0 +1,155 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
3
+ import { ResourceSet } from 'monaco-editor/esm/vs/base/common/map.js';
4
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
5
+ import { FileOperationError, IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
6
+ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
7
+ import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
8
+ import { API_OPEN_EDITOR_COMMAND_ID } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
9
+ import { TreeItemCollapsibleState } from 'vscode/vscode/vs/workbench/common/views';
10
+ import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
11
+
12
+ let SnippetsResourceInitializer = class SnippetsResourceInitializer {
13
+ constructor(userDataProfileService, fileService, uriIdentityService) {
14
+ this.userDataProfileService = userDataProfileService;
15
+ this.fileService = fileService;
16
+ this.uriIdentityService = uriIdentityService;
17
+ }
18
+ async initialize(content) {
19
+ const snippetsContent = JSON.parse(content);
20
+ for (const key in snippetsContent.snippets) {
21
+ const resource = this.uriIdentityService.extUri.joinPath(this.userDataProfileService.currentProfile.snippetsHome, key);
22
+ await this.fileService.writeFile(resource, VSBuffer.fromString(snippetsContent.snippets[key]));
23
+ }
24
+ }
25
+ };
26
+ SnippetsResourceInitializer = ( __decorate([
27
+ ( __param(0, IUserDataProfileService)),
28
+ ( __param(1, IFileService)),
29
+ ( __param(2, IUriIdentityService))
30
+ ], SnippetsResourceInitializer));
31
+ let SnippetsResource = class SnippetsResource {
32
+ constructor(fileService, uriIdentityService) {
33
+ this.fileService = fileService;
34
+ this.uriIdentityService = uriIdentityService;
35
+ }
36
+ async getContent(profile, excluded) {
37
+ const snippets = await this.getSnippets(profile, excluded);
38
+ return JSON.stringify({ snippets });
39
+ }
40
+ async apply(content, profile) {
41
+ const snippetsContent = JSON.parse(content);
42
+ for (const key in snippetsContent.snippets) {
43
+ const resource = this.uriIdentityService.extUri.joinPath(profile.snippetsHome, key);
44
+ await this.fileService.writeFile(resource, VSBuffer.fromString(snippetsContent.snippets[key]));
45
+ }
46
+ }
47
+ async getSnippets(profile, excluded) {
48
+ const snippets = {};
49
+ const snippetsResources = await this.getSnippetsResources(profile, excluded);
50
+ for (const resource of snippetsResources) {
51
+ const key = this.uriIdentityService.extUri.relativePath(profile.snippetsHome, resource);
52
+ const content = await this.fileService.readFile(resource);
53
+ snippets[key] = ( content.value.toString());
54
+ }
55
+ return snippets;
56
+ }
57
+ async getSnippetsResources(profile, excluded) {
58
+ const snippets = [];
59
+ let stat;
60
+ try {
61
+ stat = await this.fileService.resolve(profile.snippetsHome);
62
+ }
63
+ catch (e) {
64
+ if (e instanceof FileOperationError && e.fileOperationResult === 1 ) {
65
+ return snippets;
66
+ }
67
+ else {
68
+ throw e;
69
+ }
70
+ }
71
+ for (const { resource } of stat.children || []) {
72
+ if (excluded?.has(resource)) {
73
+ continue;
74
+ }
75
+ const extension = this.uriIdentityService.extUri.extname(resource);
76
+ if (extension === '.json' || extension === '.code-snippets') {
77
+ snippets.push(resource);
78
+ }
79
+ }
80
+ return snippets;
81
+ }
82
+ };
83
+ SnippetsResource = ( __decorate([
84
+ ( __param(0, IFileService)),
85
+ ( __param(1, IUriIdentityService))
86
+ ], SnippetsResource));
87
+ let SnippetsResourceTreeItem = class SnippetsResourceTreeItem {
88
+ constructor(profile, instantiationService, uriIdentityService) {
89
+ this.profile = profile;
90
+ this.instantiationService = instantiationService;
91
+ this.uriIdentityService = uriIdentityService;
92
+ this.type = "snippets" ;
93
+ this.handle = ( this.profile.snippetsHome.toString());
94
+ this.label = { label: ( localizeWithPath(
95
+ 'vs/workbench/services/userDataProfile/browser/snippetsResource',
96
+ 'snippets',
97
+ "Snippets"
98
+ )) };
99
+ this.collapsibleState = TreeItemCollapsibleState.Collapsed;
100
+ this.excludedSnippets = ( new ResourceSet());
101
+ }
102
+ async getChildren() {
103
+ const snippetsResources = await this.instantiationService.createInstance(SnippetsResource).getSnippetsResources(this.profile);
104
+ const that = this;
105
+ return ( snippetsResources.map(resource => ({
106
+ handle: ( resource.toString()),
107
+ parent: that,
108
+ resourceUri: resource,
109
+ collapsibleState: TreeItemCollapsibleState.None,
110
+ accessibilityInformation: {
111
+ label: this.uriIdentityService.extUri.basename(resource),
112
+ },
113
+ checkbox: that.checkbox ? {
114
+ get isChecked() { return !( that.excludedSnippets.has(resource)); },
115
+ set isChecked(value) {
116
+ if (value) {
117
+ that.excludedSnippets.delete(resource);
118
+ }
119
+ else {
120
+ that.excludedSnippets.add(resource);
121
+ }
122
+ },
123
+ accessibilityInformation: {
124
+ label: ( localizeWithPath(
125
+ 'vs/workbench/services/userDataProfile/browser/snippetsResource',
126
+ 'exclude',
127
+ "Select Snippet {0}",
128
+ this.uriIdentityService.extUri.basename(resource)
129
+ )),
130
+ }
131
+ } : undefined,
132
+ command: {
133
+ id: API_OPEN_EDITOR_COMMAND_ID,
134
+ title: '',
135
+ arguments: [resource, undefined, undefined]
136
+ }
137
+ })));
138
+ }
139
+ async hasContent() {
140
+ const snippetsResources = await this.instantiationService.createInstance(SnippetsResource).getSnippetsResources(this.profile);
141
+ return snippetsResources.length > 0;
142
+ }
143
+ async getContent() {
144
+ return this.instantiationService.createInstance(SnippetsResource).getContent(this.profile, this.excludedSnippets);
145
+ }
146
+ isFromDefaultProfile() {
147
+ return !this.profile.isDefault && !!this.profile.useDefaultFlags?.snippets;
148
+ }
149
+ };
150
+ SnippetsResourceTreeItem = ( __decorate([
151
+ ( __param(1, IInstantiationService)),
152
+ ( __param(2, IUriIdentityService))
153
+ ], SnippetsResourceTreeItem));
154
+
155
+ export { SnippetsResource, SnippetsResourceInitializer, SnippetsResourceTreeItem };
@@ -0,0 +1,118 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
3
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
4
+ import { FileOperationError, IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
5
+ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
6
+ import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
7
+ import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
8
+ import { API_OPEN_EDITOR_COMMAND_ID } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
9
+ import { TreeItemCollapsibleState } from 'vscode/vscode/vs/workbench/common/views';
10
+ import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
11
+
12
+ let TasksResourceInitializer = class TasksResourceInitializer {
13
+ constructor(userDataProfileService, fileService, logService) {
14
+ this.userDataProfileService = userDataProfileService;
15
+ this.fileService = fileService;
16
+ this.logService = logService;
17
+ }
18
+ async initialize(content) {
19
+ const tasksContent = JSON.parse(content);
20
+ if (!tasksContent.tasks) {
21
+ this.logService.info(`Initializing Profile: No tasks to apply...`);
22
+ return;
23
+ }
24
+ await this.fileService.writeFile(this.userDataProfileService.currentProfile.tasksResource, VSBuffer.fromString(tasksContent.tasks));
25
+ }
26
+ };
27
+ TasksResourceInitializer = ( __decorate([
28
+ ( __param(0, IUserDataProfileService)),
29
+ ( __param(1, IFileService)),
30
+ ( __param(2, ILogService))
31
+ ], TasksResourceInitializer));
32
+ let TasksResource = class TasksResource {
33
+ constructor(fileService, logService) {
34
+ this.fileService = fileService;
35
+ this.logService = logService;
36
+ }
37
+ async getContent(profile) {
38
+ const tasksContent = await this.getTasksResourceContent(profile);
39
+ return JSON.stringify(tasksContent);
40
+ }
41
+ async getTasksResourceContent(profile) {
42
+ const tasksContent = await this.getTasksContent(profile);
43
+ return { tasks: tasksContent };
44
+ }
45
+ async apply(content, profile) {
46
+ const tasksContent = JSON.parse(content);
47
+ if (!tasksContent.tasks) {
48
+ this.logService.info(`Importing Profile (${profile.name}): No tasks to apply...`);
49
+ return;
50
+ }
51
+ await this.fileService.writeFile(profile.tasksResource, VSBuffer.fromString(tasksContent.tasks));
52
+ }
53
+ async getTasksContent(profile) {
54
+ try {
55
+ const content = await this.fileService.readFile(profile.tasksResource);
56
+ return ( content.value.toString());
57
+ }
58
+ catch (error) {
59
+ if (error instanceof FileOperationError && error.fileOperationResult === 1 ) {
60
+ return null;
61
+ }
62
+ else {
63
+ throw error;
64
+ }
65
+ }
66
+ }
67
+ };
68
+ TasksResource = ( __decorate([
69
+ ( __param(0, IFileService)),
70
+ ( __param(1, ILogService))
71
+ ], TasksResource));
72
+ let TasksResourceTreeItem = class TasksResourceTreeItem {
73
+ constructor(profile, uriIdentityService, instantiationService) {
74
+ this.profile = profile;
75
+ this.uriIdentityService = uriIdentityService;
76
+ this.instantiationService = instantiationService;
77
+ this.type = "tasks" ;
78
+ this.handle = "tasks" ;
79
+ this.label = { label: ( localizeWithPath(
80
+ 'vs/workbench/services/userDataProfile/browser/tasksResource',
81
+ 'tasks',
82
+ "User Tasks"
83
+ )) };
84
+ this.collapsibleState = TreeItemCollapsibleState.Expanded;
85
+ }
86
+ async getChildren() {
87
+ return [{
88
+ handle: ( this.profile.tasksResource.toString()),
89
+ resourceUri: this.profile.tasksResource,
90
+ collapsibleState: TreeItemCollapsibleState.None,
91
+ parent: this,
92
+ accessibilityInformation: {
93
+ label: this.uriIdentityService.extUri.basename(this.profile.settingsResource)
94
+ },
95
+ command: {
96
+ id: API_OPEN_EDITOR_COMMAND_ID,
97
+ title: '',
98
+ arguments: [this.profile.tasksResource, undefined, undefined]
99
+ }
100
+ }];
101
+ }
102
+ async hasContent() {
103
+ const tasksContent = await this.instantiationService.createInstance(TasksResource).getTasksResourceContent(this.profile);
104
+ return tasksContent.tasks !== null;
105
+ }
106
+ async getContent() {
107
+ return this.instantiationService.createInstance(TasksResource).getContent(this.profile);
108
+ }
109
+ isFromDefaultProfile() {
110
+ return !this.profile.isDefault && !!this.profile.useDefaultFlags?.tasks;
111
+ }
112
+ };
113
+ TasksResourceTreeItem = ( __decorate([
114
+ ( __param(1, IUriIdentityService)),
115
+ ( __param(2, IInstantiationService))
116
+ ], TasksResourceTreeItem));
117
+
118
+ export { TasksResource, TasksResourceInitializer, TasksResourceTreeItem };