Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Jan 25, 2023
1 parent 7fc1f6a commit 207aafc
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 148 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class UserDataProfilePreviewContribution extends Disposable implements IW
) {
super();
if (environmentService.options?.profileToPreview) {
userDataProfileImportExportService.importProfile(URI.revive(environmentService.options.profileToPreview), { donotPrompt: true, previewAsTempProfile: true })
userDataProfileImportExportService.importProfile(URI.revive(environmentService.options.profileToPreview), { preview: true })
.then(null, error => logService.error('Error while previewing the profile', getErrorMessage(error)));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export abstract class ExtensionsResourceTreeItem implements IProfileResourceTree
readonly handle = ProfileResourceType.Extensions;
readonly label = { label: localize('extensions', "Extensions") };
readonly collapsibleState = TreeItemCollapsibleState.Expanded;
contextValue = ProfileResourceType.Extensions;
checkbox: ITreeItemCheckboxState | undefined;

protected readonly excludedExtensions = new Set<string>();
Expand Down

0 comments on commit 207aafc

Please sign in to comment.