Fix C# language server configuration enum parsing errors

Replace numeric enum values with proper string values for:
- dotnet_member_insertion_location: "with_other_members_of_the_same_kind"
- dotnet_property_generation_behavior: "prefer_throwing_properties"

This resolves ImplementTypeInsertionBehavior and ImplementTypePropertyGenerationBehavior parsing failures.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude AssistantandClaude committed 2025-06-26 00:04:45 +01:00
1 parent 6a9e0e97f4
commit 5b87038227
1 file changed
+8 -2
@@ -624,9 +624,15 @@ class CSharpLanguageServer(SolidLanguageServer):
result.append("openFiles") # CompilerDiagnosticsScope
else:
result.append("openFiles")
elif section == "dotnet_member_insertion_location":
# ImplementTypeInsertionBehavior enum
result.append("with_other_members_of_the_same_kind")
elif section == "dotnet_property_generation_behavior":
# ImplementTypePropertyGenerationBehavior enum
result.append("prefer_throwing_properties")
elif "location" in section or "behavior" in section:
# Enum settings
result.append(0) # Default to first enum value
# Other enum settings - return null to avoid parsing errors
result.append(None)
else:
# Default for other dotnet/csharp settings
result.append(None)