pool returns the session pool, creating it on first use.
()
| 54 | |
| 55 | // pool returns the session pool, creating it on first use. |
| 56 | func (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. |