Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix notebook document selector not being a list in capabilities #454

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

smacke
Copy link
Contributor

@smacke smacke commented Oct 8, 2023

In the LSP spec, notebookSelector in NotebookDocumentSyncOptions should be an array / list, not an object / dict. Note the [] at the end of the type in the spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#notebookDocumentSyncOptions

This PR fixes and adds a test.

Fixes #453

@ccordoba12 ccordoba12 changed the title notebook document selector should be list in capabilities fixes #453 Notebook document selector must be a list in capabilities Oct 8, 2023
@ccordoba12 ccordoba12 changed the title Notebook document selector must be a list in capabilities Fix notebook document selector not being a list in capabilities Oct 8, 2023
@ccordoba12 ccordoba12 added this to the v1.8.2 milestone Oct 8, 2023
@ccordoba12 ccordoba12 added the bug Something isn't working label Oct 9, 2023
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks @smacke!

@ccordoba12 ccordoba12 merged commit 6b975be into python-lsp:develop Oct 9, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

notebookDocumentSync notebookSelector type error
2 participants