src/vs/workbench/contrib/preferences/browser/preferences.contribution.ts/sanitizeOpenSettingsArgs
function sanitizeOpenSettingsArgs(args: any): IOpenSettingsActionOptions {
	if (!isObject(args)) {
		args = {};
	}

	return {
		openToSide: args.openToSide,
		query: args.query
	};
}