python-lsp / python-lsp-server

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

`workspace/publishDiagnostics` doesn't pass back version information to client #566

Open Dylmay opened 4 weeks ago

Dylmay commented 4 weeks ago

Currently the Python lsp server doesn't pass information about the version of a document that linting was ran on.

This could be a minor improvement for some clients which can drop diagnostics based on out-of-date versions, stopping incorrect diagnostics from being shown

See https://github.com/python-lsp/python-lsp-server/pull/565

ccordoba12 commented 3 weeks ago

It'd be nice to have this here, thanks for suggesting and implementing it.