Skip to content

Conversation

@DecSmith42
Copy link
Owner

Fixed the identifier sanitization logic to handle backslashes, replace them with forward slashes, split paths, and extract the last segment. This ensures consistent identifier naming and improves compatibility with cross-platform path formats.

Fixed the identifier sanitization logic to handle backslashes, replace them with forward slashes, split paths, and extract the last segment. This ensures consistent identifier naming and improves compatibility with cross-platform path formats.
Copilot AI review requested due to automatic review settings December 17, 2025 14:02
@DecSmith42 DecSmith42 enabled auto-merge December 17, 2025 14:02
Copy link
Contributor

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 PR modifies the identifier sanitization logic in the source generator that creates project interfaces from solution files. The change adds path normalization (replacing backslashes with forward slashes), path splitting, and extraction of the last path segment to generate valid C# identifiers from project names.

Key changes:

  • Adds backslash-to-forward-slash conversion for project keys before identifier generation
  • Implements path splitting and last-segment extraction to handle potential path separators in project names
  • Maintains existing dot and space replacement for identifier sanitization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DecSmith42 DecSmith42 merged commit 696b6ae into main Dec 17, 2025
37 of 39 checks passed
@DecSmith42 DecSmith42 deleted the fix/solution-model-generator branch December 17, 2025 14:14
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.

1 participant