lsp/server: remove mutex
In https://cue.gerrithub.io/c/cue-lang/cue/+/1232174 or
08f7d61dd8b03080fc31be8f5b4e726df5b8d299 we added a mutex to protect
server state, in recognition that we would soon have multiple
concurrent go-routines working the LSP server.
That approach with a mutex is poor; in practice, although safe, it
doesn't interact with some editors particularly nicely. Better is
possible, so here we mainly revert the above commit, and remove the
mutex.
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: Ibd1be55cfd4b350ee18abf1cec179853cc9c3346
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1233639
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>