Skip to content

Conversation

@angelozerr
Copy link
Contributor

@angelozerr angelozerr commented Nov 23, 2025

Support for Enum Value Validation in Safe Mode

In safe mode, the Enum class cannot be loaded, which prevents proper validation of enum values.

However, enumeration constant names can still be retrieved from JDT, IntelliJ, and properties files (via HintValue).
This PR introduces built-in validation in the enum converter by using the available enumeration constant names.

Here the result in safe mode (the enum class is not loaded from classpath and in this case converter uses values retrieved from JDT):

DemoWithEnumValidation

@angelozerr angelozerr self-assigned this Nov 23, 2025
@angelozerr angelozerr added the enhancement New feature or request label Nov 23, 2025
@angelozerr angelozerr added this to the 0.14.2 milestone Nov 23, 2025
@angelozerr angelozerr force-pushed the enum_support_in_safe_mode branch 6 times, most recently from 46a1ca7 to 60de440 Compare November 24, 2025 13:33
@angelozerr angelozerr force-pushed the enum_support_in_safe_mode branch from 60de440 to 78a7be5 Compare November 24, 2025 14:33
@angelozerr angelozerr merged commit 4e6c2ee into eclipse-lsp4mp:master Nov 24, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant