only register workspace trust request handler
when trust is enabled
This commit is contained in:
parent
3e8b31b394
commit
d66d392917
1 changed files with 5 additions and 4 deletions
|
@ -64,9 +64,10 @@ export class WorkspaceTrustRequestHandler extends Disposable implements IWorkben
|
|||
) {
|
||||
super();
|
||||
|
||||
this.registerListeners();
|
||||
|
||||
this.showIntroductionModal();
|
||||
if (isWorkspaceTrustEnabled(configurationService)) {
|
||||
this.registerListeners();
|
||||
this.showIntroductionModal();
|
||||
}
|
||||
}
|
||||
|
||||
private toggleRequestBadge(visible: boolean): void {
|
||||
|
@ -82,7 +83,7 @@ export class WorkspaceTrustRequestHandler extends Disposable implements IWorkben
|
|||
|
||||
private showIntroductionModal(): void {
|
||||
const workspaceTrustIntroDialogDoNotShowAgainKey = 'workspace.trust.introduction.doNotShowAgain';
|
||||
const doNotShowAgain = this.storageService.getBoolean(workspaceTrustIntroDialogDoNotShowAgainKey, StorageScope.GLOBAL, true);
|
||||
const doNotShowAgain = this.storageService.getBoolean(workspaceTrustIntroDialogDoNotShowAgainKey, StorageScope.GLOBAL, false);
|
||||
if (!doNotShowAgain && this.shouldShowIntroduction) {
|
||||
// Show welcome dialog
|
||||
(async () => {
|
||||
|
|
Loading…
Reference in a new issue