function configureCommandlineSwitches(cliArgs, nodeCachedDataDir) {

	// Force pre-Chrome-60 color profile handling (for https://github.com/Microsoft/vscode/issues/51791)
	app.commandLine.appendSwitch('disable-color-correct-rendering');

	// Support JS Flags
	const jsFlags = resolveJSFlags(cliArgs, nodeCachedDataDir.jsFlags());
	if (jsFlags) {
		app.commandLine.appendSwitch('--js-flags', jsFlags);
	}

	// Disable smooth scrolling for Webviews
	if (cliArgs['disable-smooth-scrolling']) {
		app.commandLine.appendSwitch('disable-smooth-scrolling');
	}
}
function configureCommandlineSwitches(cliArgs, nodeCachedDataDir) {

	// Force pre-Chrome-60 color profile handling (for https://github.com/Microsoft/vscode/issues/51791)
	app.commandLine.appendSwitch('disable-color-correct-rendering');

	// Support JS Flags
	const jsFlags = resolveJSFlags(cliArgs, nodeCachedDataDir.jsFlags());
	if (jsFlags) {
		app.commandLine.appendSwitch('--js-flags', jsFlags);
	}

	// Disable smooth scrolling for Webviews
	if (cliArgs['disable-smooth-scrolling']) {
		app.commandLine.appendSwitch('disable-smooth-scrolling');
	}
}
function configureCommandlineSwitches ( cliArgs , nodeCachedDataDir ) { // Force pre-Chrome-60 color profile handling (for https://github.com/Microsoft/vscode/issues/51791) app . commandLine . appendSwitch ( 'disable-color-correct-rendering' ) ; // Support JS Flags const jsFlags = resolveJSFlags ( cliArgs , nodeCachedDataDir . jsFlags ( ) ) ; if ( jsFlags ) { app . commandLine . appendSwitch ( '--js-flags' , jsFlags ) ; } // Disable smooth scrolling for Webviews if ( cliArgs [ 'disable-smooth-scrolling' ] ) { app . commandLine . appendSwitch ( 'disable-smooth-scrolling' ) ; } }
@typedef {import('minimist').ParsedArgs} ParsedArgs

@param {ParsedArgs} cliArgs
@param {{ jsFlags: () => string }} nodeCachedDataDir
@typedef { import ( minimist ) . ParsedArgs } ParsedArgs
Configure command line switches