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

"In" interpreted as gherkin keyword #363

Open themizzi opened 3 years ago

themizzi commented 3 years ago

Describe the bug The plugin is interpreting the word "In" as a gherkin keyword

To Reproduce Steps to reproduce the behavior:

  1. Create a new feature file
  2. Add Feature: and press enter
  3. Type "In {anything}"

Expected behavior Nothing is highlighted

Screenshots

Screen Shot 2020-11-13 at 12 26 50 AM

Cucumberautocomplete part of VSCode settings:

    "cucumberautocomplete.steps": [
        "e2e/steps/*.ts"
    ],
    "cucumberautocomplete.strictGherkinCompletion": true

Step definition: If applicable, add example of step definition: N/A

Gherkin step line If applicable, add step line from gherkin file

Feature:
  In order to ensure the application loads
  As a user
  I want to open the application without errors

  Scenario: Open application
    When I navigate to "/"
    Then there are no logs of level 1000 or higher
Papooch commented 2 years ago

It seems to highlight most (but not all) keywords from different languages image

It would be great if we could choose only a subset of those.

rioj7 commented 2 years ago

The TextMate language grammer matches all the words defined in the Cucumber language JSON file.

Better to select the words for a collection of languages. (Needs a VSC restart)