This time by porting to the ApplicationOutputwindow cherry-pick of fd01cc976aff8da1efe55bc8ad9eeb05a04f08e1