提交 20dd07ae 编写于 作者: S Sandeep Somavarapu

support web overrides for configuration sync store

上级 67bd821c
......@@ -23,6 +23,7 @@ export interface IBuiltInExtension {
}
export type ConfigurationSyncStore = {
web?: Partial<Omit<ConfigurationSyncStore, 'web'>>,
url: string,
insidersUrl: string,
stableUrl: string,
......
......@@ -48,6 +48,8 @@ export abstract class AbstractUserDataSyncStoreManagementService extends Disposa
}
protected toUserDataSyncStore(productStore: ConfigurationSyncStore | undefined, configuredStore?: ConfigurationSyncStore): UserDataSyncStore | undefined {
// Web overrides
productStore = isWeb && productStore?.web ? { ...productStore, ...productStore.web } : productStore;
const value: Partial<ConfigurationSyncStore> = { ...(productStore || {}), ...(configuredStore || {}) };
if (value
&& isString(value.url)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册