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

Make workspace/didChangeConfig work with notebook documents by tkrabel-db · Pull Request #462 · python-lsp/python-lsp-server · GitHub

Make workspace/didChangeConfig work with notebook documents - #462

Merged
ccordoba12 merged 6 commits into
python-lsp:developfrom
tkrabel-db:support-workspace-config-change-with-notebooks
Oct 18, 2023
Merged

Make workspace/didChangeConfig work with notebook documents#462
ccordoba12 merged 6 commits into
python-lsp:developfrom
tkrabel-db:support-workspace-config-change-with-notebooks

Conversation

tkrabel-db commented Oct 15, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

What change is proposed?

Notebook doesn't support update_config, as configuration is handled on the cell level. This makes workspace/didChangeConfguration error when there are notebook documents in the workspace. This PR fixes that.

How is this tested?

  • unit test
  • Manually on Databricks notebooks, which supports notebookDocument messages

tkrabel-db changed the title Make workspace/didChangeConfig work with notebook documents [WIP] Make workspace/didChangeConfig work with notebook documents Oct 16, 2023
Comment thread pylsp/workspace.py Outdated
Comment thread pylsp/workspace.py Outdated
Comment thread pylsp/plugins/rope_autoimport.py Outdated
Comment thread pylsp/plugins/rope_autoimport.py Outdated
tkrabel-db changed the title [WIP] Make workspace/didChangeConfig work with notebook documents Make workspace/didChangeConfig work with notebook documents Oct 17, 2023

Copy link
Copy Markdown
Contributor Author

@ccordoba12 @rchl this is ready for review

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/plugins/rope_autoimport.py Outdated
Comment thread pylsp/plugins/rope_autoimport.py Outdated
Comment thread pylsp/workspace.py Outdated
ccordoba12 added this to the v1.9.0 milestone Oct 17, 2023
ccordoba12 added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Oct 17, 2023
tkrabel-db requested a review from ccordoba12 October 17, 2023 23:17

Copy link
Copy Markdown
Contributor Author

@ccordoba12 I addressed the comments. Thanks for the swift feedback!

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 681d81e into python-lsp:develop Oct 18, 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.

2 participants


Back | FazBrowse Home | New Git URL