fix various Monaco bugs and limitations
Created by: sqs
Low priority
See commit messages. None of these were reported by users (and the 2-Monaco-editors conflict only occurs in #4490, not yet merged).
Created by: sqs
Low priority
See commit messages. None of these were reported by users (and the 2-Monaco-editors conflict only occurs in #4490, not yet merged).