.feature 文件中的 Intellij IDEA 语言注入

Intellij IDEA language injection in .feature file

我在 .feature 文件中定义了一个 Cucumber 场景,我在其中测试了我开发的 API:

Given Something
When an API call is executed: GET '/v1/my/endpoint'
Then response status is OK
And response body is:
"""
{
  "id": "id-1",
  "message": "it worked"
}
"""

我希望能够为 JSON 片段突出显示语法。 在文档 1 2 中未找到任何内容。语言注入注释也不起作用:

# language=javascript
And response body is:
"""
{
  "id": "id-1",
  "message": "it worked"
}
"""

所以问题是如何在 .feature 文件中进行语言注入?

此功能目前not supported,欢迎投票。