marlonfan / coc-phpls

🐭 php language server for coc.nvim
MIT License
211 stars 17 forks source link

Excessive underscores and duplicate backslashes in documenation popup #63

Closed mikehaertl closed 4 years ago

mikehaertl commented 4 years ago

I see many _ around parameter or namespace names and duplicate \ in my hover or documentation popups:

coc_underscore

Expected

Actual

LSP response

[Trace - 11:04:05 AM] Received response 'textDocument/hover - (2)' in 9ms.
Result: {
    "contents": {
        "kind": "markdown",
        "value": "__app\\\\tasks\\\\Task::\\_\\_construct__\n\n```php\n<?php\npublic function __construct($config = []) { }\n```\n\n_@param_ `array $config`  \nobject configuration. The special key 'options' can\ncontain immutable options that will override default options from\n[[options()]]. Options can be fetched from [[getOption()].\n\n_@return_ `void`\n\n_@throws_ `yii\\base\\InvalidConfigException` — if an unknown option is passed"
    },
    "range": {
        "start": {
            "line": 406,
            "character": 20
        },
        "end": {
            "line": 406,
            "character": 31
        }
    }
}

Versions

vim version: NVIM v0.5.0-506-gda6f38ab3 node version: v10.20.1 coc.nvim version: 0.0.78-0033e4e624 term: screen-256color platform: linux

I don't know if this is a problem of intelephense, coc.nvim or this extension. Any help welcome.

mikehaertl commented 4 years ago

@marlonfan I think this is really an issue with intelephense and not this library. Will report it there.