Skip to content

Conversion stops without reaching an expected output due to exceeded iteration limit #30

@fo-folder

Description

@fo-folder

In the plugin config: choose only two cases for conversion. One of this combinations:

  1. camelCase and snake_case
  2. kebab-case and SNAKE_CASE
  3. Camel Case and kebab-case
  4. space case and kebab-case
  5. PascalCase and camelCase
    Then:
  • Apply changes;
  • Execute conversion 1-2 times on selected text. Example for some of the given case combinations:
  1. camelCaseConversion
  2. kebab-case-conversion

Result: The process stops after 20 iterations, with an output of an intermediate conversion state, and fails to reach the final expected conversion.
Examples:

  1. usePascalCaseWithSpace -> usepascalcasewithspace
  2. kebab-case-conversion -> KEBAB-CASE-CONVERSION

Expectation: The text must be converted following the specified conversion types, reaching the final expected format.


It might be solved in some cases by increasing the iteration limit. I'd suggest number of cases squared - 49 to cover most scenarios and not to affect performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions