File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66import { createDecorator } from 'vs/platform/instantiation/common/instantiation' ;
77import { ExtensionKind } from 'vs/platform/extensions/common/extensions' ;
8+ import { IStringDictionary } from 'vs/base/common/collections' ;
89
910export const IProductService = createDecorator < IProductService > ( 'productService' ) ;
1011
@@ -21,6 +22,8 @@ export interface IBuiltInExtension {
2122 readonly metadata : any ;
2223}
2324
25+ export type ConfigurationSyncStore = { url : string , authenticationProviders : IStringDictionary < { scopes : string [ ] } > } ;
26+
2427export interface IProductConfiguration {
2528 readonly version : string ;
2629 readonly date ?: string ;
@@ -113,7 +116,7 @@ export interface IProductConfiguration {
113116 readonly msftInternalDomains ?: string [ ] ;
114117 readonly linkProtectionTrustedDomains ?: readonly string [ ] ;
115118
116- readonly 'configurationSync.store' ?: { url : string , authenticationProviderId : string } ;
119+ readonly 'configurationSync.store' ?: ConfigurationSyncStore ;
117120}
118121
119122export interface IExeBasedExtensionTip {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import { FormattingOptions } from 'vs/base/common/jsonFormatter';
2020import { URI } from 'vs/base/common/uri' ;
2121import { joinPath , isEqualOrParent } from 'vs/base/common/resources' ;
2222import { IEnvironmentService } from 'vs/platform/environment/common/environment' ;
23- import { IProductService } from 'vs/platform/product/common/productService' ;
23+ import { IProductService , ConfigurationSyncStore } from 'vs/platform/product/common/productService' ;
2424import { distinct } from 'vs/base/common/arrays' ;
2525import { isArray , isString , isObject } from 'vs/base/common/types' ;
2626
@@ -135,7 +135,7 @@ export function isAuthenticationProvider(thing: any): thing is IAuthenticationPr
135135}
136136
137137export function getUserDataSyncStore ( productService : IProductService , configurationService : IConfigurationService ) : IUserDataSyncStore | undefined {
138- const value = configurationService . getValue < { url : string , authenticationProviders : IStringDictionary < { scopes : string [ ] } > } > ( CONFIGURATION_SYNC_STORE_KEY ) || productService [ CONFIGURATION_SYNC_STORE_KEY ] ;
138+ const value = configurationService . getValue < ConfigurationSyncStore > ( CONFIGURATION_SYNC_STORE_KEY ) || productService [ CONFIGURATION_SYNC_STORE_KEY ] ;
139139 if ( value
140140 && isString ( value . url )
141141 && isObject ( value . authenticationProviders )
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class UserDataSyncClient extends Disposable {
6565 _serviceBrand : undefined , ...product , ...{
6666 'configurationSync.store' : {
6767 url : this . testServer . url ,
68- authenticationProviderId : 'test'
68+ authenticationProviders : { 'test' : { scopes : [ ] } }
6969 }
7070 }
7171 } ) ;
You can’t perform that action at this time.
0 commit comments