def respond

bolt@1.27.0.0 · src/lsp/server.bend:171

import bolt@1.27.0.0/src/lsp/server.bend as Server
import Base
import emerging-ezjson@1.2.0.0/src/value.bend as J

171# the response to the request with this id
172def respond(id: J.Json, aa: Answer) -> Reply:
173  match aa:
174    case Answer{result}:
175      RResult{id, result}
176    case Refusal{code, message}:
177      RError{id, code, message}

Uses (3)

Used by (1)