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

support Linq methods on ImmutableArray + added Errors tab to Compilation Page #1713

Merged
merged 3 commits into from
Oct 22, 2023

Conversation

exyi
Copy link
Member

@exyi exyi commented Oct 17, 2023

Original goal was to add an "Errors" tab to the compilation which lists all failed pages, controls and master pages. Saves few clicks and scrolling when checking the compilation page.

image

However, I had to fix Linq translations on ImmutableArray. ImmutableArray is a struct so it has custom Linq method overloads to avoid allocations. These are preferred by the compiler over the IEnumerable<T> methods.

I also added .AsEnumerable and few other conversion methods to help users work around similar issues.

@exyi exyi force-pushed the js-translations-immutablearray branch from 7fdcd20 to b6e30b9 Compare October 17, 2023 19:49
exyi added 3 commits October 17, 2023 21:49
ImmutableArray is a struct so it has custom Linq method overloads
to avoid allocations.
These are preferred by the compiler over IEnumerable<T>,
so our Linq support was broken.

Also added .AsEnumerable and few other conversion methods
to help users work around similar issues.
@exyi exyi force-pushed the js-translations-immutablearray branch from b6e30b9 to b5ca605 Compare October 17, 2023 19:49
Copy link
Member

@tomasherceg tomasherceg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the docs page

@tomasherceg tomasherceg merged commit c5ef35b into main Oct 22, 2023
14 checks passed
@tomasherceg tomasherceg deleted the js-translations-immutablearray branch October 22, 2023 08:30
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

Successfully merging this pull request may close these issues.

2 participants