@@ -59,7 +59,6 @@ import { ICommandService } from 'vs/platform/commands/common/commands';
59
59
import { isWeb } from 'vs/base/common/platform' ;
60
60
import { installLocalInRemoteIcon } from 'vs/workbench/contrib/extensions/browser/extensionsIcons' ;
61
61
import { registerAction2 , Action2 , MenuId } from 'vs/platform/actions/common/actions' ;
62
- import { WorkspaceTrustContext } from 'vs/workbench/services/workspaces/common/workspaceTrust' ;
63
62
64
63
const SearchMarketplaceExtensionsContext = new RawContextKey < boolean > ( 'searchMarketplaceExtensions' , false ) ;
65
64
const SearchIntalledExtensionsContext = new RawContextKey < boolean > ( 'searchInstalledExtensions' , false ) ;
@@ -411,14 +410,14 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
411
410
id : 'workbench.views.extensions.untrustedUnsupportedExtensions' ,
412
411
name : localize ( 'untrustedUnsupportedExtensions' , "Disabled in Restricted Mode" ) ,
413
412
ctorDescriptor : new SyncDescriptor ( UntrustedWorkspaceUnsupportedExtensionsView , [ { } ] ) ,
414
- when : ContextKeyExpr . and ( WorkspaceTrustContext . IsTrusted . negate ( ) , SearchUnsupportedWorkspaceExtensionsContext ) ,
413
+ when : ContextKeyExpr . and ( SearchUnsupportedWorkspaceExtensionsContext ) ,
415
414
} ) ;
416
415
417
416
viewDescriptors . push ( {
418
417
id : 'workbench.views.extensions.untrustedPartiallySupportedExtensions' ,
419
418
name : localize ( 'untrustedPartiallySupportedExtensions' , "Limited in Restricted Mode" ) ,
420
419
ctorDescriptor : new SyncDescriptor ( UntrustedWorkspacePartiallySupportedExtensionsView , [ { } ] ) ,
421
- when : ContextKeyExpr . and ( WorkspaceTrustContext . IsTrusted . negate ( ) , SearchUnsupportedWorkspaceExtensionsContext ) ,
420
+ when : ContextKeyExpr . and ( SearchUnsupportedWorkspaceExtensionsContext ) ,
422
421
} ) ;
423
422
424
423
viewDescriptors . push ( {
0 commit comments