cucumber / language-server

Cucumber Language Server
MIT License
33 stars 19 forks source link

Handling *.mts files #78

Closed nicolashenry closed 1 year ago

nicolashenry commented 1 year ago

πŸ€” What's the problem you're trying to solve?

Currently .mts files (and probably .mjs, .cjs and .cts) are ignored as glue files:

[Info  - 5:31:37 PM] * Found 2 feature file(s) in ["features/**/*.feature"]
[Info  - 5:31:37 PM] * Found 50 steps in those feature files
[Info  - 5:31:37 PM] * Found 0 glue file(s) in ["features/step-definitions/**/*.mts"]
[Info  - 5:31:37 PM] * Found 0 parameter types in those glue files
[Info  - 5:31:37 PM] * Found 0 step definitions in those glue files

✨ What's your proposed solution?

To add those files extensions to the supported ones, I think it should probably be added in https://github.com/cucumber/language-server/blob/main/src/fs.ts and https://github.com/cucumber/language-server/blob/main/src/CucumberLanguageServer.ts to support those file extensions.

⛏ Have you considered any alternatives or workarounds?

Yes, to use simple ts files but I would prefer to keep .mts files

πŸ“š Any additional context?

-


This text was originally generated from a template, then edited by hand. You can modify the template here.