cucumber / language-server

Cucumber Language Server
MIT License
33 stars 19 forks source link

Glob paths not matching c-sharp files #89

Closed kieran-ryan closed 8 months ago

kieran-ryan commented 9 months ago

The default glob paths for c-sharp step definition and feature files match the names that contain only the file extension (no stem) - e.g. complete filenames called .cs and .feature - thus must be configured by the user in all cases at present.

{
  features: [
     ...
     '*specs*/**/.feature',
   ],
   glue: [
     ...
     '*specs*/**/.cs',
  ]
}

🤔 What's changed?

{
  features: [
     ...
     '*specs*/**/*.feature',
   ],
   glue: [
     ...
     '*specs*/**/*.cs',
  ]
}

⚡️ What's your motivation?

🏷️ What kind of change is this?

📋 Checklist:

kieran-ryan commented 8 months ago

Issue was previously resolved within the VSCode extension (cucumber/vscode#93). However, as it was never updated in the Language Server first, when the list of glob patterns was extended for new languages within this repository, they were also applied back into the VSCode repo (following documented procedure) and included the previous patterns for C# - inadvertently reverting the fix.

Once this fix is merged, will update the changes within the VSCode extension.