Add support for marking custom functions as deprecated with visual warnings#8156
Add support for marking custom functions as deprecated with visual warnings#8156danvervlad wants to merge 7 commits into4ian:masterfrom
Conversation
|
Hello! Thanks for opening this PR. The extension editor UI is still a bit rough today (the extension editor has changed a lot lately and we still try to improve it). The "Private" checkbox should have been named "Hidden": when you check it, you will see that existing usages of the function appear in yellow. So I wonder if this would have fitted your need? More context: We try to make depreciation as transparent as possible for users. This means:
In your case, I guess you want to have the deprecation explanation shown to your users? |
Hi, I know about the "Hidden" checkbox, but it's intended for use within the extension itself, isn't it? |











Summary
Changes
Core/GDCore:
SetDeprecationMessageandIsDeprecatedmethods toInstructionMetadata,ExpressionMetadata, andMultipleInstructionMetadataDeprecatedExpressionerror type toExpressionParserErrorInstructionValidatorwithValidateParameterthat returns both validity and deprecation status via newParameterValidationResultstructEventsFunctionmodel (isDeprecated,deprecationMessage)Events Sheet (UI):
[DEPRECATED]prefix for deprecated actions and conditionsshowDeprecatedInstructionWarningpreference flagExtension Editor: