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

View.Create, View.Build* and View.Update* should not be hidden from Intellisense #159

Closed
TimLariviere opened this issue Aug 14, 2018 · 2 comments
Labels
t/enhancement New feature or request

Comments

@TimLariviere
Copy link
Member

The methods View.Create, View.Build* and View.Update* are currently generated with the attribute [<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>].

This is good most of the time because this would otherwise pollutes Intellisense when writing views.

But when making custom controls, this makes them undiscoverable and we need to either guess the name of the functions or find them on Github. Either way this is bad.

I think one way to improve that would be to put them in their separate module?
That way when writing views, View.* wouldn't show build methods, and when making custom controls it would be shown to the developers.

@dsyme
Copy link
Collaborator

dsyme commented Sep 3, 2018

Perhaps EditorBrowsableState.Advanced, though I'm not sure of its impact in the different toolchains (I don't think any F# tooling notices it).

@dsyme
Copy link
Collaborator

dsyme commented Sep 3, 2018

Putting them in a different module is ok too, I think it is feasible (except perhaps for Create)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants