alexkrechik / VSCucumberAutoComplete

Cucumber (Gherkin) Full Support Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
MIT License
331 stars 79 forks source link

`cucumberautocomplete.skipDocStringsFormat` does not support multi line doc string input `yaml` #464

Open andytang-ast opened 1 year ago

andytang-ast commented 1 year ago

Describe the bug cucumberautocomplete.skipDocStringsFormat does not support multi line doc string input yaml

To Reproduce

  1. Have a json string use tool (e.g. https://codebeautify.org/json-to-yaml) to covert it to yaml
  2. Disable cucumberautocomplete.skipDocStringsFormat
  3. On VS Code, having Cucumber code using multi line doc string input
    When enter Doc String
    """
    json string
    """
  4. It will auto fix the format and indent on file save.
  5. On VS Code, having same code on Step-3. but using yaml string from Step-1.
    When enter Doc String
    """
    yaml string
    """
  6. It will NOT auto fix the format and worse, it will remove the format and indent if it's given in the first place.

Expected behavior It will check the yaml error, or least not removing the yaml format

Screenshots N/A

Cucumberautocomplete part of VSCode settings:

        "cucumberautocomplete.steps": [
            "./steps/**/*.ts"
        ],
        "cucumberautocomplete.strictGherkinCompletion": true,
        "cucumberautocomplete.syncfeatures": "./features/**/*feature",

Step definition: N/A

Gherkin step line See Reproduce above