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

Scenario Template: syntax coloring not working #456

Open zmorris opened 1 year ago

zmorris commented 1 year ago

Describe the bug Scenario Template: keyword (from Gherkin 6?) not highlighting, maybe others

To Reproduce Steps to reproduce the behavior:

  1. Edit settings.json (~/Library/Application Support/Code/User/settings.json on macOS) to have:
    "cucumberautocomplete.formatConfOverride": {
        "Scenario Template:": 1
    }
  2. Relaunch VS Code or disable/reload/enable Cucumber (Gherkin) Full Support extension
  3. Open a file ending with .feature and see that lines starting with Scenario Template: are still the default color
  4. I'm using VS Code 1.72.2 on macOS 12.5.1 if that helps

Expected behavior Scenario Template: should be the same color as Scenario Outline: See https://github.com/alexkrechik/VSCucumberAutoComplete/issues/293 for previous issue which is closed See https://cucumber.io/docs/gherkin/reference/ for additional keywords Updating the default conf to have the new keyword(s) would be enough to help me, even if overriding cucumberautocomplete.formatConfOverride still doesn't work for some reason (maybe user error on my part)

Screenshots image

Cucumberautocomplete part of VSCode settings: Skipped

Step definition: Skipped

Gherkin step line

Feature: My feature
  @run
  Scenario Outline: Do stuff
    Given stuff
    # ^^^ "Scenario Outline:" is highlighted

  @run
  Scenario Template: Do stuff
    Given stuff
    # ^^^ "Scenario Template:" is NOT highlighted