Avoid unnecessary code action requests when applying leader updates t… (#2489)

We noticed a huge amount of code actions requests being issued by
followers when applying leader updates. It was caused by a call to
`MultiBuffer::remove_excerpts` with an empty list of excerpts to remove.
This PR fixes that by avoiding emitting spurious events when multibuffer
excerpt manipulation methods are called with empty lists.
ffe35d171cMax Brunsfeld committed on 5/18/2023, 9:52:21 PM· committed by GitHubparents87e206c58f704a
2 files changedLine totals unavailable