Server.rename.of: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/server.bend as Server Lines 494-501 of bolt@1.27.0.0/src/lsp/server.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/server.bend&start_line=494&end_line=501 import Base import bolt@1.27.0.0/src/lsp/proto.bend as Proto import bolt@1.27.0.0/src/lsp/nav.bend as Nav import bolt@1.27.0.0/src/lsp/enc.bend as Enc # only a name bound in the document renames; the editor shows the refusal def rename.of(cc: Enc.Cols, ss: Nav.Sites, uri: String, name: String, new: String) -> Answer: Nav.Sites{mine, at} = ss match mine: case True{}: Answer{Proto.rename(cc, uri, name, new, at)} case False{}: Refusal{"-32803", "only a name bound in this file can be renamed"} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/enc.bend&name=Cols https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/nav.bend&name=Sites https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/proto.bend&name=rename https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/server.bend&name=Answer