ballerina-lang
ballerina-lang copied to clipboard
[Improvement]: Support extraction of constants from type definitions
Description
When users declare new types as unions of literal values, they often need to extract these literals as constants for reuse throughout their codebase. However, our current code action for extracting constants does not support this scenario.
eg:
type LoanType "personal"|"educational"|"housing"|"business";
By doing this users will experience a smoother workflow when working with type definitions containing unions of literal values.