Skip to content

Commit f421b1b

Browse files
authored
fix importing extensions and globalstate (microsoft#167162)
1 parent c957a12 commit f421b1b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/vs/workbench/services/userDataProfile/browser/extensionsResource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class ExtensionsResource implements IProfileResource {
144144
}
145145
}
146146

147-
abstract class ExtensionsResourceTreeItem implements IProfileResourceTreeItem {
147+
export abstract class ExtensionsResourceTreeItem implements IProfileResourceTreeItem {
148148

149149
readonly type = ProfileResourceType.Extensions;
150150
readonly handle = ProfileResourceType.Extensions;

src/vs/workbench/services/userDataProfile/browser/globalStateResource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class GlobalStateResource implements IProfileResource {
7171
}
7272
}
7373

74-
abstract class GlobalStateResourceTreeItem implements IProfileResourceTreeItem {
74+
export abstract class GlobalStateResourceTreeItem implements IProfileResourceTreeItem {
7575

7676
readonly type = ProfileResourceType.GlobalState;
7777
readonly handle = 'globalState';

src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import { SettingsResource, SettingsResourceTreeItem } from 'vs/workbench/service
2727
import { KeybindingsResource, KeybindingsResourceTreeItem } from 'vs/workbench/services/userDataProfile/browser/keybindingsResource';
2828
import { SnippetsResource, SnippetsResourceTreeItem } from 'vs/workbench/services/userDataProfile/browser/snippetsResource';
2929
import { TasksResource, TasksResourceTreeItem } from 'vs/workbench/services/userDataProfile/browser/tasksResource';
30-
import { ExtensionsResource, ExtensionsResourceExportTreeItem, ExtensionsResourceImportTreeItem } from 'vs/workbench/services/userDataProfile/browser/extensionsResource';
31-
import { GlobalStateResource, GlobalStateResourceExportTreeItem, GlobalStateResourceImportTreeItem } from 'vs/workbench/services/userDataProfile/browser/globalStateResource';
30+
import { ExtensionsResource, ExtensionsResourceExportTreeItem, ExtensionsResourceImportTreeItem, ExtensionsResourceTreeItem } from 'vs/workbench/services/userDataProfile/browser/extensionsResource';
31+
import { GlobalStateResource, GlobalStateResourceExportTreeItem, GlobalStateResourceImportTreeItem, GlobalStateResourceTreeItem } from 'vs/workbench/services/userDataProfile/browser/globalStateResource';
3232
import { InMemoryFileSystemProvider } from 'vs/platform/files/common/inMemoryFilesystemProvider';
3333
import { Button } from 'vs/base/browser/ui/button/button';
3434
import { IViewletViewOptions } from 'vs/workbench/browser/parts/views/viewsViewlet';
@@ -736,9 +736,9 @@ abstract class UserDataProfileImportExportState extends Disposable implements IT
736736
tasks = await root.getContent();
737737
} else if (root instanceof SnippetsResourceTreeItem) {
738738
snippets = await root.getContent();
739-
} else if (root instanceof ExtensionsResourceExportTreeItem) {
739+
} else if (root instanceof ExtensionsResourceTreeItem) {
740740
extensions = await root.getContent();
741-
} else if (root instanceof GlobalStateResourceExportTreeItem) {
741+
} else if (root instanceof GlobalStateResourceTreeItem) {
742742
globalState = await root.getContent();
743743
}
744744
}

0 commit comments

Comments
 (0)