MCPcopy Create free account
hub / github.com/diillson/chatcli / pool

Method pool

cli/lsp_tool_adapter.go:56–61  ·  view source on GitHub ↗

pool returns the session pool, creating it on first use.

()

Source from the content-addressed store, hash-verified

54
55// pool returns the session pool, creating it on first use.
56func (a *lspToolAdapter) pool() *lsp.Pool {
57 a.cli.lspPoolOnce.Do(func() {
58 a.cli.lspPool = lsp.NewPool(a.cli.logger)
59 })
60 return a.cli.lspPool
61}
62
63// acquire resolves the file path (expansion + absolutization) and returns a
64// ready session plus the absolute path.

Callers 1

acquireMethod · 0.95

Calls 2

NewPoolFunction · 0.92
DoMethod · 0.80

Tested by

no test coverage detected