python-lsp / python-lsp-server

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

Add support to `textDocument/semanticTokens/full` messages #103

Open eranif opened 2 years ago

eranif commented 2 years ago

As described here: https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#semanticTokens_fullRequest

This method is used by IDEs to colour variables/functions etc in different colours and it seems to be missing from pylsp

Hebe970217 commented 2 years ago

As described here: https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#semanticTokens_fullRequest

This method is used by IDEs to colour variables/functions etc in different colours and it seems to be missing from pylsp

Excuse me, I discovery same to U, that's problem! You solved the problem to now?

I am not sure whether it is caused by the problem of plug-in enabling. from my log output: 2022-09-27 17:21:12,667 UTC - INFO - pyls.config.config - Disabled plugins: [<module 'pyls.plugins.flake8_lint' from '/home/funning/.local/lib/python3.7/site-packages/pyls/plugins/flake8_lint.py'>, <module 'pyls.plugins.pydocstyle_lint' from '/home/funning/.local/lib/python3.7/site-packages/pyls/plugins/pydocstyle_lint.py'>, <module 'pyls.plugins.pylint_lint' from '/home/funning/.local/lib/python3.7/site-packages/pyls/plugins/pylint_lint.py'>, <module 'pyls.plugins.rope_completion' from '/home/funning/.local/lib/python3.7/site-packages/pyls/plugins/rope_completion.py'>, <module 'pyls.plugins.rope_rename' from '/home/funning/.local/lib/python3.7/site-packages/pyls/plugins/rope_rename.py'>]