How to reproduce:
1. Open the attached “console_recompile_issue” project
2. From the menu bar, select “Test → Message Console”
3. Ensure that the Console’s “Clear on Recompile” option is enabled (Clear → Clear on Recompile)
4. Open the “MessageConsole” script
5. Add a line break anywhere in the script
6. Save the script (CTRL+S)
7. Observe the Console window
Expected result: The Console window is cleared upon recompilation
Actual result: The Console window is not cleared upon recompilation
Reproducible in: 2022.2.0a12, 2022.3.31f1, 6000.0.4f1
Not reproducible in: 2021.3.39f1, 2022.2.0a11
Reproducible on: Windows 11
Not reproducible on: No other environments tested