~/bend-docscommunity

src/lsp/run.bend source

src/lsp/run.bend on the hub · documented module

# lsp/run: the container; `bolt lsp` runs it. Native only: the JS lane# overflows its stack on big messages.import Baseimport ./server.bend as Serverimport ./transport/stdio.bend as Stdioimport ./files/disk.bend as Diskimport ./checker/bend.bend as BendChecker# the server over stdio, reading the diskdef run() -> IO(Unit):  # noqa: L001 IO entry point  do IO<Unit>:    h : Stdio.Stdio <- Stdio.open()    Server.serve(~Stdio.Stdio, ~Stdio.new(), ~Disk.new(), ~BendChecker.service(), 4294967295n, h, [])