Skip to content

Commit 943cfa8

Browse files
committed
removed wrong synchronization directives
1 parent c3eac7a commit 943cfa8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: handler/handler.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func (handler *InoHandler) StopClangd() {
100100
// HandleMessageFromIDE handles a message received from the IDE client (via stdio).
101101
func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) (interface{}, error) {
102102
needsWriteLock := map[string]bool{
103+
"initialize": true,
103104
"textDocument/didOpen": true,
104105
"textDocument/didChange": true,
105106
"textDocument/didClose": true,
@@ -697,9 +698,6 @@ func (handler *InoHandler) ino2cppWorkspaceEdit(origEdit *lsp.WorkspaceEdit) *ls
697698
}
698699

699700
func (handler *InoHandler) transformClangdResult(method string, uri lsp.DocumentURI, result interface{}) interface{} {
700-
handler.synchronizer.DataMux.RLock()
701-
defer handler.synchronizer.DataMux.RUnlock()
702-
703701
cppToIno := uri != "" && uri.AsPath().EquivalentTo(handler.buildSketchCpp)
704702

705703
switch r := result.(type) {

0 commit comments

Comments
 (0)