diff --git a/langserver/langserver.go b/langserver/langserver.go index 12aa7bf32..3dfadb46b 100644 --- a/langserver/langserver.go +++ b/langserver/langserver.go @@ -28,6 +28,10 @@ type langServer struct { func NewLangServer(srvCtx context.Context, sf session.SessionFactory) *langServer { opts := &jrpc2.ServerOptions{ AllowPush: true, + + // Disable concurrency to avoid race conditions + // between requests concerning the same document + Concurrency: 1, } return &langServer{