File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
platform/extensionManagement/common
workbench/contrib/relauncher/browser Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export interface IProductConfiguration {
70
70
71
71
readonly extensionsGallery ?: {
72
72
readonly serviceUrl : string ;
73
+ readonly servicePPEUrl ?: string ;
73
74
readonly searchUrl ?: string ;
74
75
readonly itemUrl : string ;
75
76
readonly publisherUrl : string ;
Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ abstract class AbstractExtensionGalleryService implements IExtensionGalleryServi
587
587
@IConfigurationService private readonly configurationService : IConfigurationService ,
588
588
) {
589
589
const config = productService . extensionsGallery ;
590
- this . extensionsGalleryUrl = config ?. serviceUrl ;
590
+ this . extensionsGalleryUrl = config ?. servicePPEUrl && configurationService . getValue ( '_extensionsGallery.enablePPE' ) ? config . servicePPEUrl : config ?. serviceUrl ;
591
591
this . extensionsGallerySearchUrl = config ?. searchUrl ;
592
592
this . extensionsControlUrl = config ?. controlUrl ;
593
593
this . commonHeadersPromise = resolveMarketplaceHeaders (
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ interface IConfiguration extends IWindowsConfiguration {
28
28
security ?: { workspace ?: { trust ?: { enabled ?: boolean } } } ;
29
29
window : IWindowSettings & { experimental ?: { windowControlsOverlay ?: { enabled ?: boolean } ; useSandbox ?: boolean } } ;
30
30
workbench ?: { experimental ?: { settingsProfiles ?: { enabled ?: boolean } } ; enableExperiments ?: boolean } ;
31
+ _extensionsGallery ?: { enablePPE ?: boolean } ;
31
32
}
32
33
33
34
export class SettingsChangeRelauncher extends Disposable implements IWorkbenchContribution {
@@ -43,6 +44,7 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
43
44
private workspaceTrustEnabled : boolean | undefined ;
44
45
private settingsProfilesEnabled : boolean | undefined ;
45
46
private experimentsEnabled : boolean | undefined ;
47
+ private enablePPEExtensionsGallery : boolean | undefined ;
46
48
47
49
constructor (
48
50
@IHostService private readonly hostService : IHostService ,
@@ -130,6 +132,12 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
130
132
changed = true ;
131
133
}
132
134
135
+ // Profiles
136
+ if ( this . productService . quality !== 'stable' && typeof config . _extensionsGallery ?. enablePPE === 'boolean' && config . _extensionsGallery ?. enablePPE !== this . enablePPEExtensionsGallery ) {
137
+ this . enablePPEExtensionsGallery = config . _extensionsGallery ?. enablePPE ;
138
+ changed = true ;
139
+ }
140
+
133
141
// Notify only when changed and we are the focused window (avoids notification spam across windows)
134
142
if ( notify && changed ) {
135
143
this . doConfirm (
You can’t perform that action at this time.
0 commit comments