@@ -471,7 +471,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
471471 // Inject headers when requests are incoming
472472 const urls = [ 'https://marketplace.visualstudio.com/*' , 'https://*.vsassets.io/*' ] ;
473473 this . _win . webContents . session . webRequest . onBeforeSendHeaders ( { urls } , ( details , cb ) =>
474- this . marketplaceHeadersPromise . then ( headers => cb ( { cancel : false , requestHeaders : objects . assign ( details . requestHeaders , headers ) as Record < string , string > } ) ) ) ;
474+ this . marketplaceHeadersPromise . then ( headers => cb ( { cancel : false , requestHeaders : Object . assign ( details . requestHeaders , headers ) } ) ) ) ;
475475 }
476476
477477 private onWindowError ( error : WindowError ) : void {
@@ -597,7 +597,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
597597
598598 // Add disable-extensions to the config, but do not preserve it on currentConfig or
599599 // pendingLoadConfig so that it is applied only on this load
600- const configuration = objects . assign ( { } , config ) ;
600+ const configuration = { ... config } ;
601601 if ( disableExtensions !== undefined ) {
602602 configuration [ 'disable-extensions' ] = disableExtensions ;
603603 }
@@ -701,7 +701,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
701701
702702 // Config (combination of process.argv and window configuration)
703703 const environment = parseArgs ( process . argv , OPTIONS ) ;
704- const config = objects . assign ( environment , windowConfiguration ) ;
704+ const config = Object . assign ( environment , windowConfiguration ) ;
705705 for ( const key in config ) {
706706 const configValue = ( config as any ) [ key ] ;
707707 if ( configValue === undefined || configValue === null || configValue === '' || configValue === false ) {
0 commit comments