palantir / python-language-server

An implementation of the Language Server Protocol for Python
MIT License
2.6k stars 281 forks source link

Support for custom LSP extensions #921

Open xiaoxiae opened 3 years ago

xiaoxiae commented 3 years ago

It would be nice if there was a convenent way to register custom capabilities that aren't in the LSP standard, but are necessary for some more complex plugins. An example could be textDocument/documentType (a "Document Types" request) returning a list of symbol : type for the given file, which could be used for type annotation.