Skip to content

Commit

Permalink
remove log.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrabel-db committed Oct 17, 2023
1 parent b59ed85 commit ec3b92e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pylsp/plugins/rope_autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,8 @@ def pylsp_completions(
ignored_names: Set[str] = ignored_names or get_names(
document.jedi_script(use_document_path=True)
)
log.debug("autoimport: ignored names: %s", ignored_names)
autoimport = workspace._rope_autoimport(rope_config)
suggestions = list(autoimport.search_full(word, ignored_names=ignored_names))
log.debug("autoimport: suggestions: %s", suggestions)
results = list(
sorted(
_process_statements(suggestions, document.uri, word, autoimport, document),
Expand Down
2 changes: 0 additions & 2 deletions pylsp/python_lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,9 @@ def completions(self, doc_uri, position):
document = workspace.get_document(doc_uri)
ignored_names = None
if isinstance(document, Cell):
log.debug("Getting ignored names from notebook document")
# We need to get the ignored names from the whole notebook document
notebook_document = workspace.get_maybe_document(document.notebook_uri)
ignored_names = notebook_document.jedi_names()
log.debug("Got ignored names from notebook document: %s", ignored_names)
completions = self._hook(
"pylsp_completions", doc_uri, position=position, ignored_names=ignored_names
)
Expand Down

0 comments on commit ec3b92e

Please sign in to comment.