python-lsp / python-lsp-server

Fork of the python-language-server project, maintained by the Spyder IDE team and the community
MIT License
1.76k stars 186 forks source link

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

Closed smacke closed 9 months ago

smacke commented 9 months ago

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