Skip to content

Commit 1c47e42

Browse files
authored
Merge pull request hashicorp#120 from hashicorp/f-concurrency
langserver: Make requests sequential
2 parents 2ad17cd + 1bc4381 commit 1c47e42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

langserver/langserver.go

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ type langServer struct {
2828
func NewLangServer(srvCtx context.Context, sf session.SessionFactory) *langServer {
2929
opts := &jrpc2.ServerOptions{
3030
AllowPush: true,
31+
32+
// Disable concurrency to avoid race conditions
33+
// between requests concerning the same document
34+
Concurrency: 1,
3135
}
3236

3337
return &langServer{

0 commit comments

Comments
 (0)