Skip to content

Return documentation with CompletionItem #1036

@JaRoSchm

Description

@JaRoSchm

Hi, many editor allow to show the signature and docstring next to each suggested completion item. See for example this screenshot where python-lsp-server and neovim are used:

Image

If ty is used, no documentation is shown:

Image

I suppose that for this documentation has to be returned with each CompletionItem, see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItem. It would be nice if this was also supported by ty.

Metadata

Metadata

Assignees

Labels

serverRelated to the LSP server

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions