Skip to content

Commit d0ca632

Browse files
committed
fix: workspace/didChangeConfiguration error
1 parent bcc1b49 commit d0ca632

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

handler.go

+6
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ func (h *langHandler) handle(ctx context.Context, conn *jsonrpc2.Conn, req *json
128128
return h.handleTextDocumentDidChange(ctx, conn, req)
129129
case "textDocument/didSave":
130130
return h.handleTextDocumentDidSave(ctx, conn, req)
131+
case "workspace/didChangeConfiguration":
132+
return h.handlerWorkspaceDidChangeConfiguration(ctx, conn, req)
131133
}
132134

133135
return nil, &jsonrpc2.Error{Code: jsonrpc2.CodeMethodNotFound, Message: fmt.Sprintf("method not supported: %s", req.Method)}
@@ -189,3 +191,7 @@ func (h *langHandler) handleTextDocumentDidSave(_ context.Context, _ *jsonrpc2.C
189191

190192
return nil, nil
191193
}
194+
195+
func (h *langHandler) handlerWorkspaceDidChangeConfiguration(_ context.Context, _ *jsonrpc2.Conn, req *jsonrpc2.Request) (result interface{}, err error) {
196+
return nil, nil
197+
}

0 commit comments

Comments
 (0)