Fix race conditions with LSP requests that return buffers

* Avoid panic when registering a buffer that was previously open,
  and whose weak handle was still present in the open_buffers map.
* Avoid releasing any buffers while a request is outstanding which
  could return a reference to a buffer.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
170487a528Max Brunsfeld committed on 2/23/2022, 11:26:01 PMparent17c9aa1
3 files changedLine totals unavailable