Visual Studio error "Attempted TextBuffer edit operation while another edit is in progress"
Question: How do you resolve the error "Attempted TextBuffer edit Operation while another edit is in progress", this error is thrown in Visual Studio 2022 when pasting a script.