Skip to content

Commit

Permalink
🐛 Pass latest source units and interval trees to detectors in LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Sep 8, 2023
1 parent 48df2fa commit a4af785
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions woke/lsp/lsp_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,11 @@ def source_units(self) -> Dict[Path, SourceUnit]:

@property
def last_build(self) -> ProjectBuild:
# TODO may be subject to race conditions
return ProjectBuild(
self.__last_compilation_interval_trees,
self.__ir_reference_resolver, # TODO may be subject to race condition
self.__last_compilation_source_units,
self.__interval_trees,
self.__ir_reference_resolver,
self.__source_units,
)

@property
Expand Down

0 comments on commit a4af785

Please sign in to comment.