-
-
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
Hiding variables marked with @access JSDOC. #227
Comments
By "hide" do you mean keep them out of autocomplete (would be easy)? Or, for the case of private variables, only allow them to autocomplete in the scope in which they are defined (a little difficult for basic functionality, really difficult for full functionality)? Or should they be in autocomplete but show a warning when used? If such variables do get used without autocomplete, would that be flagged as an error? |
I think a good solution to start would be to hide variables from autocomplete that are marked as private via JSDocs or maybe prefixed with an underscore. Adapting later on to provide more intelligent autocomplete would be a good idea. Open to suggestions :) |
This is tricky since I think it's pretty rare that you want something to be universally excluded from autocomplete. We probably need to break it down by case to figure out what kind of behavior would be useful. Cases that come to mind:
At least for the cases I can think of, I can see a case for Typescript-style I can see starting with implementing a Does that cover the kind of thing you're imagining? Do you have any specific cases of things you want to hide? If so, where do you want them visible versus invisible, and why? |
It would be nice to add the ability to hide variables marked with
@private, @protected
, etc. Or, simply ignoring variables that have a prefix (such as an underscore).The text was updated successfully, but these errors were encountered: