Skip to content

Commit

Permalink
⚡️ LSP do not recompile excluded files
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Jul 1, 2024
1 parent 959c869 commit 73e5371
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wake/lsp/lsp_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,11 @@ async def on_progress(downloaded: int, total: int) -> None:
for path, errors in errors_per_file.items():
await self.__diagnostic_queue.put((path, errors))

# only recompile files we are interested in
files_to_recompile = {
p for p in files_to_recompile if not self.__file_excluded(p)
}

if len(files_to_recompile) > 0:
# avoid infinite recursion
if files_to_recompile != files_to_compile or full_compile:
Expand Down

0 comments on commit 73e5371

Please sign in to comment.