diff --git a/pylsp/plugins/rope_autoimport.py b/pylsp/plugins/rope_autoimport.py index c13907a4..6c4784aa 100644 --- a/pylsp/plugins/rope_autoimport.py +++ b/pylsp/plugins/rope_autoimport.py @@ -241,7 +241,7 @@ def pylsp_document_did_save(config: Config, workspace: Workspace, document: Docu @hookimpl -def pylsp_workspace_configuration_chaged(config: Config, workspace: Workspace): +def pylsp_workspace_configuration_changed(config: Config, workspace: Workspace): """ Initialize autoimport if it has been enabled through a workspace/didChangeConfiguration message from the frontend. @@ -250,3 +250,5 @@ def pylsp_workspace_configuration_chaged(config: Config, workspace: Workspace): """ if config.plugin_settings("rope_autoimport").get("enabled", False): _reload_cache(config, workspace) + else: + log.debug("autoimport: Skipping cache reload.")