Skip to content

Commit

Permalink
Minor bug fix in Rope autoimport plugin (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrabel-db authored Oct 18, 2023
1 parent 681d81e commit 2f2c0e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylsp/plugins/rope_autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.")

0 comments on commit 2f2c0e8

Please sign in to comment.