Open
Description
At the moment the first MarkedString
in hover messages is of language "php". According to LSP specification the client should render this as if it was a markdown string like:
```php php code block ```
The language server prepends <?php
to ensure that the VSCode colorize the PHP code.
I haven't seen any markdown editor to require wrapping PHP code in PHP tags to colorize it. It seems to be a specific implementation detail in VSCode. For all other clients this <?php
tag does not bring any information to users, it just stands there like a buggy code hickup.
I propose one of the following solutions:
- Don't prepend
<?php
at all and report the issue to VSCode. - Prepend
<?php
only if the client is VSCode.