Skip to content

Commit 4f6d7cb

Browse files
Fix progress reporting with autoimport plugin (#530)
1 parent ed00eac commit 4f6d7cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pylsp/plugins/rope_autoimport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def reload_cache(
3737
config: Config,
3838
workspace: Workspace,
3939
files: Optional[List[Document]] = None,
40-
single_thread: Optional[bool] = False,
40+
single_thread: Optional[bool] = True,
4141
):
4242
if self.is_blocked():
4343
return

test/plugins/test_autoimport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def test_autoimport_code_actions_and_completions_for_notebook_document(
313313
)
314314
assert rope_autoimport_settings.get("completions", {}).get("enabled", False) is True
315315
assert rope_autoimport_settings.get("memory", False) is True
316-
wait_for_condition(lambda: not cache.thread.is_alive())
316+
wait_for_condition(lambda: not cache.is_blocked())
317317

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

0 commit comments

Comments
 (0)