From 757ce9647145917d7e47a2b9963841a064310cf0 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Thu, 9 Jan 2025 17:59:22 +0100 Subject: [PATCH] revert change --- .../extensionManagement/common/allowedExtensionsService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vs/platform/extensionManagement/common/allowedExtensionsService.ts b/src/vs/platform/extensionManagement/common/allowedExtensionsService.ts index 7a2892fd098fb..0d00bc2bfeb34 100644 --- a/src/vs/platform/extensionManagement/common/allowedExtensionsService.ts +++ b/src/vs/platform/extensionManagement/common/allowedExtensionsService.ts @@ -54,8 +54,7 @@ export class AllowedExtensionsService extends Disposable implements IAllowedExte } private getAllowedExtensionsValue(): AllowedExtensionsConfigValueType | undefined { - const inspectValue = this.configurationService.inspect(AllowedExtensionsConfigKey); - const value = inspectValue.policyValue ?? inspectValue.userValue ?? inspectValue.defaultValue; + const value = this.configurationService.getValue(AllowedExtensionsConfigKey); if (!isObject(value) || Array.isArray(value)) { return undefined; }