FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Ignore notebook names on cell completion for autoimport by tkrabel-db · Pull Request #466 · python-lsp/python-lsp-server · GitHub

Ignore notebook names on cell completion for autoimport - #466

Merged
ccordoba12 merged 17 commits into
python-lsp:developfrom
tkrabel-db:rope-add-ignored-names-from-notebook
Oct 19, 2023
Merged

Ignore notebook names on cell completion for autoimport#466
ccordoba12 merged 17 commits into
python-lsp:developfrom
tkrabel-db:rope-add-ignored-names-from-notebook

Conversation

tkrabel-db commented Oct 17, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

What is changed?

With the notebook document, every cell is its own document living in the workspace. When doing rope autoimport completions on a cell document position, we should not provide completion suggestions for names already imported before that (see video below).

How is this tested?

  • integration test
  • manually on Databricks notebooks
Screen.Recording.2023-10-18.at.11.48.23.mov

ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Some minor comments for you @tkrabel-db, the rest looks good to me.

Comment thread pylsp/workspace.py Outdated
Comment thread test/fixtures.py Outdated
Comment thread test/plugins/test_autoimport.py Outdated
Comment thread test/test_utils.py Outdated
Comment thread test/test_notebook_document.py Outdated
ccordoba12 added this to the v1.9.0 milestone Oct 18, 2023
ccordoba12 added the enhancement New feature or request label Oct 18, 2023
ccordoba12 changed the title rope autoimport -- ignore notebook names on cell completion Ignore notebook names on cell completion in autoimport Oct 18, 2023
ccordoba12 changed the title Ignore notebook names on cell completion in autoimport Ignore notebook names on cell completion for autoimport Oct 18, 2023
tkrabel-db and others added 3 commits October 18, 2023 18:58
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
tkrabel-db requested a review from ccordoba12 October 18, 2023 16:58

Copy link
Copy Markdown
Contributor Author

Thanks for the review @ccordoba12 . I added all your suggestions! 🚀

Copy link
Copy Markdown
Contributor Author

Weird, Static code analysis / Static code analysis (pull_request) failed but when looking at the details, everything passed ...

Copy link
Copy Markdown
Member

Kicked, let's see if it happens again.

ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good to me now, thanks @tkrabel-db!

ccordoba12 merged commit b864c4f into python-lsp:develop Oct 19, 2023
staticf0x pushed a commit to staticf0x/python-lsp-server that referenced this pull request Oct 27, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL