Skip to content

Commit

Permalink
Fix progress reporting with autoimport plugin (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan authored Mar 13, 2024
1 parent ed00eac commit 4f6d7cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylsp/plugins/rope_autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def reload_cache(
config: Config,
workspace: Workspace,
files: Optional[List[Document]] = None,
single_thread: Optional[bool] = False,
single_thread: Optional[bool] = True,
):
if self.is_blocked():
return
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/test_autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def test_autoimport_code_actions_and_completions_for_notebook_document(
)
assert rope_autoimport_settings.get("completions", {}).get("enabled", False) is True
assert rope_autoimport_settings.get("memory", False) is True
wait_for_condition(lambda: not cache.thread.is_alive())
wait_for_condition(lambda: not cache.is_blocked())

# 1.
quick_fixes = server.code_actions("cell_1_uri", {}, make_context("os", 0, 0, 2))
Expand Down

0 comments on commit 4f6d7cb

Please sign in to comment.