From 1439b1f702163de3c80fd1b4981b40e3cd8072f6 Mon Sep 17 00:00:00 2001 From: Zhe Yu Date: Wed, 21 May 2025 15:25:44 +0800 Subject: [PATCH] fix(cli): use `db_url` for lsp --- src/vectorcode/lsp_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vectorcode/lsp_main.py b/src/vectorcode/lsp_main.py index bc0f9692..51a56e6a 100644 --- a/src/vectorcode/lsp_main.py +++ b/src/vectorcode/lsp_main.py @@ -40,8 +40,8 @@ async def make_caches(project_root: str): cached_project_configs[project_root] = await get_project_config(project_root) config = cached_project_configs[project_root] config.project_root = project_root - host, port = config.host, config.port - if not await try_server(host, port): # pragma: nocover + db_url = config.db_url + if not await try_server(db_url): # pragma: nocover raise ConnectionError( "Failed to find an existing ChromaDB server, which is a hard requirement for LSP mode!" )