So theres a little confusion here, you're using idealism to mean optimism, they're using idealism to mean "pertaining to ideas as opposed to material reality and existing social relations".
The latter tends to be used in political texts, particularly marxist ones.