Skip to content

Include class docstring in signature help for constructor calls #898

@UnboundVariable

Description

@UnboundVariable

The "signature help" language server feature currently includes the docstring for the target function or method, but it doesn't have any special logic for constructor calls. It may be desirable to include the docstring for the class in addition to (or in place of) the docstring for the __new__ or __init__ method. I've left a TODO in the signature_help.rs module to revisit this based on user feedback.

Feedback from ty users would be helpful here. What would you like to see displayed in this case?

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