Skip to content

Conversation

@datacute
Copy link
Owner

@datacute datacute commented Aug 3, 2025

No description provided.

@datacute datacute requested a review from Copilot August 3, 2025 04:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This is a release preparation pull request that bumps the version to 1.0.4 and includes various improvements and fixes to the IncrementalGeneratorExtensions package.

  • Version bump from 1.0.3 to 1.0.4 with package metadata fixes
  • Enhanced EquatableImmutableArray instance cache with a new two-level caching strategy
  • Added generator name and version information to auto-generated code comments

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
version.props Updates version prefix to 1.0.4
global.json Simplifies SDK configuration by removing prerelease settings
IncrementalGeneratorExtensions.csproj Reorders PackageProjectUrl property for consistency
SourceTextGeneratorBase.cs Adds assembly metadata extraction for generator identification
GeneratorStageDescriptions.cs Updates stage descriptions and adds new embedded attribute stage
GeneratorStage.cs Adds PostInitializationContextAddEmbeddedAttributeDefinition enum value
EquatableImmutableArrayInstanceCache.cs New file implementing optimized two-level instance cache
EquatableImmutableArray.cs Refactors to use external cache implementation
CHANGELOG.md Documents release changes and updates version links
Comments suppressed due to low confidence (1)

IncrementalGeneratorExtensions.Content/Datacute/IncrementalGeneratorExtensions/EquatableImmutableArrayInstanceCache.cs:29

  • [nitpick] The variable name 'Cache' is too generic for a complex nested data structure. Consider a more descriptive name like 'LengthToFirstElementHashCache' or 'TwoLevelInstanceCache' to clarify its purpose.
        private static readonly ConcurrentDictionary<int, ConcurrentDictionary<int, List<WeakReference<EquatableImmutableArray<T>>>>> Cache = 

@datacute datacute merged commit 7713eab into main Aug 3, 2025
1 check passed
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