How to enable alerts like assignment in conditional expression

Hello, how to enable alerts like assignment in conditional expression in Visual Studio Code?

assignment_in_conditional_expression.jpg