Skip to content

Commit a521bba

Browse files
committed
fix(lsp): use correct file lists
1 parent e1e476c commit a521bba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vectorcode/lsp_main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,11 @@ async def execute_command(ls: LanguageServer, args: list[str]):
222222
semaphore = asyncio.Semaphore(os.cpu_count() or 1)
223223
tasks = [
224224
asyncio.create_task(
225-
vectorise_worker(database, file, semaphore, stats, stats_lock)
225+
vectorise_worker(
226+
database, str(file), semaphore, stats, stats_lock
227+
)
226228
)
227-
for file in files
229+
for file in final_configs.files
228230
]
229231
for i, task in enumerate(asyncio.as_completed(tasks), start=1):
230232
await task

0 commit comments

Comments
 (0)