def pub.seen
bolt@1.27.0.0 · src/lsp/server.bend:375
import bolt@1.27.0.0/src/lsp/server.bend as Server
import Base
import bolt@1.27.0.0/src/lsp/proto.bend as Proto
import bolt@1.27.0.0/src/lint/plan.bend as Plan
import bolt@1.27.0.0/src/lint/world.bend as W
import bolt@1.27.0.0/src/role.bend as Role
import bolt@1.27.0.0/src/lsp/files/service.bend as F
375
376
377def pub.seen(~fs: F.Files, +uri: String) -> IO(List<&2, Role.Mark>):
378 do IO<List<&2, Role.Mark>>:
379 cwd : String <- F.cwd(fs)
380 ww : W.World <- pub.world.go(~fs, Nat.add(Plan.limit(), 2n), W.World{[Proto.path(uri)], cwd, []})
381 return pub.marks(ww)