-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add warnings to provide documentation #202
Comments
Can you provide some examples of the kinds of cases you'd want to see error info for, and what info you'd want to see in the error messages? |
We should implement support for the following warnings:
Something as simple as:
Furthermore, perhaps providing support for access modifiers or simply supporting |
I like these, though since we don't have a strong desire for them ourselves they unfortunately won't be very high up on my priority queue. For future reference for myself, or for anyone who wants to take a crack at this. When functions are processed we already know if they have docs:
Logic could be added to look at the JSDoc contents, and add diagnostic errors via Since not all users would want this, we'd need to add some Diagnostic containers specifically for this purpose to allow filtering:
Those new collections would probably be something like:
After all of that we'll be getting the new diagnostics. BUT, since most users won't want that extra diagnostic info we'd need to also update the extension to allow configuration of which diagnostics the user wants. Currently we DON'T have a config option for that, but that's definitely something we'll want at some point anyway. I'm not sure what the best way would be to handle that, but poking around at other extensions they seem to use fully separate config options for each entry (or otherwise use a separate config file from the VSCode config, a la eslint. Having them in the Extension config would probably be best, though. The config entries could be something like |
Is this something I could look at implementing? |
Definitely! It's complicated, especially if you aren't used to the Node.js ecosystem, so it'll take some doing. You can make a draft PR to ask questions as you go. I haven't added much documentation for development setup, but that's something I can do sometimes this week to reduce initial friction |
That sounds great, I'd love to see this feature through to the end. |
My projects has some fairly strict rules around documentation. It would be neat to have some warnings around missing documentation for variables, functions, enums, etc.
The text was updated successfully, but these errors were encountered: