maui icon indicating copy to clipboard operation
maui copied to clipboard

Weird types appear in Intellisense

Open jonathanpeppers opened this issue 2 years ago • 3 comments

Description

image

I suspect these are created by a source generator and we need to make them hidden?

Steps to Reproduce

  1. new maui app
  2. Type _ and look at the Intellisense results

Link to public reproduction project repository

Just use the template

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

Doesn't matter

Did you find any workaround?

No

Relevant log output

No response

jonathanpeppers avatar Feb 24 '23 20:02 jonathanpeppers

Could this be a cause of performance issues? If you have tons of generated XAML types (Like, say, the MAUI Source Repo has with its samples) that might not be good for Roslyn performance if it has to go over them.

drasticactions avatar Feb 27 '23 07:02 drasticactions

@drasticactions I think this source generator needs to emit EditorBrowsableState.Never on the above types:

https://github.com/dotnet/maui/blob/main/src/Controls/src/SourceGen/CodeBehindGenerator.cs

They come from Styles.xaml and Colors.xaml.

jonathanpeppers avatar Feb 27 '23 14:02 jonathanpeppers

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Feb 28 '23 19:02 ghost

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on MAUI Project with sample project. image

homeyf avatar Jun 19 '23 08:06 homeyf