cucumber / cucumber/language-server
Allow for custom treesitter queries through server config
- Dominant language
- TypeScript
- Stars
- 56
- Forks
- 35
- Avg merge
- 6h 26m
- Merged PRs (30d)
- 1
Description
### 🤔 What's the problem you're trying to solve?
I may be missing a way to achieve this now, apologies if so. It would be super helpful if there was a way for us to configure custom treesitter queries for the language service to use when finding step definitions, as the most-recent hard-coded options are slightly different from the current structure I am working with (that unfortunately I cannot change), causing 0 steps to be found in all glue files.
### ✨ What's your proposed solution?
Add an additional setting that allows for adding custom treesitter syntax queries, enabling much more flexibility for developers working on non-standard step definition structure.
### ⛏ Have you considered any alternatives or workarounds?
Considered cloning the language service and patching the local install of the language server.
### 📚 Any additional context?
_No response_
Contributor guide
Research direction
Start by locating the server configuration handling and the hard-coded Tree-sitter queries used to find step definitions. Trace how those queries are applied to glue files and determine how a custom setting would be loaded and selected. Done means a configured query can find steps in a non-standard structure without changing the language-server installation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100