Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove default "@returns" for constructors #3

Closed
VoidVolker opened this issue Aug 17, 2021 · 1 comment
Closed

Remove default "@returns" for constructors #3

VoidVolker opened this issue Aug 17, 2021 · 1 comment

Comments

@VoidVolker
Copy link

By default constructor returns and current class instance. If constructor returns any value - add docs.

@kimlimjustin
Copy link
Owner

I don't think this is possible to detect whether a function is a constructor except by creating an intellisense, but I want to keep this extension lightweight. However, I'll just detect if the line contains the word constructor and if it is, I'll just remove the default "@returns".

However, if you get any ideas, any PR will be welcomed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants