Cucumber Language Server
A Language Server for Cucumber.
This language server provides most of the functionality offered by the Cucumber Visual Studio Code Extension.
It may also be used to power other LSP editors.
Supported features
Settings
The LSP client can provide settings to the server, but the server provides reasonable defaults if the client does not provide them.
The server retrieves cucumber.*
settings from the client with a workspace/configuration request.
The server expects settings in the following format:
features: ['src/test//*.feature', 'features//.feature'], glue: ['src/test/**/.java', 'features/**/*.ts'],
setting | default | example |
---|---|---|
features |
['src/test/**/*.feature', 'features/**/*.feature'] |
(see default) |
glue |
['src/test/**/*.java', 'features/**/*.ts'] |
(see default) |
parameterTypes |
[] |
[{ name: 'actor', regexp: '[A-Z][a-z]+' }] |
The parameterTypes
setting can be used to define Custom Parameter Types
that are not directly visible in the source code. For example, if you're using the actor
parameter type from
@cucumber/screenplay you'll have to
declare this in the parameterTypes
setting.