[Feature Request]: ide.json "staticStrings" completions file and line references
Feature Description
It would be very nice if I could define a file and line "staticStrings" completions in the ide.json that PhpStorm sees as a usage/declaration.
This would mean that "Declaration or Usages" would go to the file and line referenced, the reverse might not be possible but is also less important in my opinion.
Example syntax:
{
"$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
"completions": [
{
"complete": "staticStrings",
"options": {
"strings": {
"dashboard": "resources/views/dashboard.vue:10", // Line number after ":"
"example::test": "resources/domain/example/views/test.vue", // No line number
"test2": null // Same behaviour as now
}
},
"condition": [
{
"functionNames": [
"hybridly"
],
"parameters": [
1
]
}
]
}
]
}
Giving no line number would put the cursor at the beginning of the file or the position that PhpStorm remembered, whichever is easier to implement.
This is not intended to replace the original syntax and could also be it's own completion type or an option with a name other than "strings".
I hope you agree with this and that it's not too much work to implement, it would be a very helpful feature!
Up