feat: automatically trigger autocompletion in view files on $ sign#45
Conversation
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2025.2.1
with:
upload-result: trueContact Qodana teamContact us at qodana-support@jetbrains.com
|
|
@xepozz This works fine, but something odd is going on. If the template brackets are not wrapped in any HTML element, we are getting no completion whatsoever. So this works: <?php
/** @var string $title **/
?>
<body>
{{ $| }} <!-- getting autocompletion for $title -->
</body>But this doesn't: <?php
/** @var string $title **/
?>
{{ $| }} <!-- NOT getting autocompletion for $title -->Any chance you could take a look on this? The issue is probably not directly caused by this addition, more like the outcome of a bug somewhere else. Even without this feature, non-html-wrapped template variables get no proper completion even if triggered via the IDE's in-built |
@xHeaven the reason it doesn't work is That's why it should be done by a new templating PSI layer over the original HTML. Let's merge it and decide how to do it later |


Closes #20.
Currently only supports variables that exist in the view file in some way, for example as a PHPDoc:
/** @var string $title **/