title: In Cucumber, how do you resolve "Was unable to find step for" error when using {int} in a step definition?
body: <p>I am building a Cucumber framework for WebdriverIO using Visual Studio Code.</p>
  <p>I have a step definition which reads:</p>
  <pre><code>Then(&quot;there are/is {int} {string} displayed&quot;, (elementCount, element) =&gt; {
      expect(BasePage.getElementCount(BasePage.getElement(element))).toBe(elementCount);
  });
  </code></pre>
  <p>And then in my feature file, I have the following scenario:</p>
  <pre><code>Background: There have been 2 new products added to the site
      Given I have created a &quot;Product Name&quot; via the API
          And I have created a &quot;Product Name&quot; via the API
          And I have gone to the &quot;Products&quot; page
          And the &quot;Product Name&quot; is not displayed
  
  Scenario: User searches for the product
      When I set the &quot;Search Field&quot; to &quot;Product Name&quot;
      Then there are 2 &quot;Product Name&quot; displayed
  </code></pre>
  <p>However, I get a random yellow squiggly line (&quot;contains emphasized items&quot;) underneath the Then step saying:</p>
  <pre><code>Was unable to find step for &quot;Then there are 2 &quot;Product Name&quot; displayed&quot; cucumberautocomplete
  </code></pre>
  <p>All my other step definitions that <strong>don't</strong> use the {int} parameter are fine and the entire feature file still executes correctly (even with the squiggly line), but visually, I would like this &quot;contains emphasized items&quot; error to disappear from the step definitions that include {int}.</p>
  <p>I'm unsure whether this is a problem with VS Code, or WDIO, or the VS Code Cucumber extension.</p>
  <p>My cucumber options in my wdio.conf.js file are as follows:</p>
  <pre><code>// If you are using Cucumber you need to specify the location of your step definitions.
      cucumberOpts: {
          // &lt;string[]&gt; (file/dir) require files before executing features
          require: [`./wdio/steps/**/*.steps.js`],
          // &lt;boolean&gt; show full backtrace for errors
          backtrace: false,
          // &lt;string[]&gt; (&quot;extension:module&quot;) require files with the given EXTENSION after requiring MODULE (repeatable)
          requireModule: [`@babel/register`],
          // &lt;boolean&gt; invoke formatters without executing steps
          dryRun: false,
          // &lt;boolean&gt; abort the run on first failure
          failFast: false,
          // &lt;string[]&gt; (type[:path]) specify the output format, optionally supply PATH to redirect formatter output (repeatable)
          format: [`pretty`],
          // &lt;boolean&gt; hide step definition snippets for pending steps
          snippets: true,
          // &lt;boolean&gt; hide source uris
          source: true,
          // &lt;string[]&gt; (name) specify the profile to use
          profile: [],
          // &lt;boolean&gt; fail if there are any undefined or pending steps
          strict: false,
          // &lt;string&gt; (expression) only execute the features or scenarios with tags matching the expression
          tagExpression: `not @skip`,
          // &lt;number&gt; timeout for step definitions
          timeout: 60000,
          // &lt;boolean&gt; Enable this config to treat undefined definitions as warnings.
          ignoreUndefinedDefinitions: false
      },
  </code></pre>
  <p>My cucumber autocomplete settings in my settings.json file are as follows:</p>
  <pre><code>{
      &quot;cucumberautocomplete.steps&quot;: [&quot;./wdio/steps/**/*.steps.js&quot;],
      &quot;cucumberautocomplete.syncfeatures&quot;: &quot;./wdio/features/**/*.feature&quot;,
      &quot;cucumberautocomplete.strictGherkinCompletion&quot;: true,
      &quot;cucumberautocomplete.strictGherkinValidation&quot;: true,
      &quot;cucumberautocomplete.smartSnippets&quot;: true,
      &quot;cucumberautocomplete.stepsInvariants&quot;: true,
      &quot;cucumberautocomplete.skipDocStringsFormat&quot;: true,
      &quot;cucumberautocomplete.formatConfOverride&quot;: {
          &quot;And&quot;: 3,
          &quot;But&quot;: &quot;relative&quot;
      },
      &quot;cucumberautocomplete.onTypeFormat&quot;: true,
      &quot;editor.quickSuggestions&quot;: {
          &quot;other&quot;: true,
          &quot;comments&quot;: false,
          &quot;strings&quot;: true
      },
      &quot;cucumberautocomplete.gherkinDefinitionPart&quot;: &quot;(Given|When|Then)\\(&quot;
  }
  </code></pre>
  <p>Many thanks in advance.</p>