mirror of
https://github.com/gitpod-io/openvscode-server.git
synced 2024-06-10 09:30:54 +02:00
spread originalConfig rather than reconstructing it
This commit is contained in:
parent
a329907d0e
commit
465b92f3ac
|
@ -574,12 +574,8 @@ function readCookie(name: string): string | undefined {
|
|||
const secretStorageCrypto = secretStorageKeyPath && ServerKeyedAESCrypto.supported()
|
||||
? new ServerKeyedAESCrypto(secretStorageKeyPath) : new TransparentCrypto();
|
||||
const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents; workspaceUri?: UriComponents; callbackRoute: string } = {
|
||||
...originalConfig,
|
||||
remoteAuthority: window.location.host,
|
||||
developmentOptions: originalConfig.developmentOptions,
|
||||
settingsSyncOptions: originalConfig.settingsSyncOptions,
|
||||
folderUri: originalConfig.folderUri,
|
||||
workspaceUri: originalConfig.workspaceUri,
|
||||
callbackRoute: originalConfig.callbackRoute
|
||||
};
|
||||
|
||||
// Create workbench
|
||||
|
@ -587,7 +583,6 @@ function readCookie(name: string): string | undefined {
|
|||
...config,
|
||||
windowIndicator: config.windowIndicator ?? { label: '$(remote)', tooltip: `${product.nameShort} Web` },
|
||||
settingsSyncOptions: config.settingsSyncOptions ? { enabled: config.settingsSyncOptions.enabled, } : undefined,
|
||||
developmentOptions: { ...config.developmentOptions },
|
||||
workspaceProvider: WorkspaceProvider.create(config),
|
||||
urlCallbackProvider: new LocalStorageURLCallbackProvider(config.callbackRoute),
|
||||
secretStorageProvider: config.remoteAuthority && !secretStorageKeyPath
|
||||
|
|
Loading…
Reference in New Issue
Block a user