mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
bump to 5.7.7
This commit is contained in:
parent
6e109aadce
commit
2efd9c81e0
@ -50,7 +50,7 @@ class ClientConfiguration
|
||||
/**
|
||||
* Provide Signature Help or not
|
||||
*/
|
||||
public ?bool $provideSignatureHelp= null;
|
||||
public ?bool $provideSignatureHelp = null;
|
||||
|
||||
/**
|
||||
* Provide Code Actions or not
|
||||
|
@ -430,6 +430,9 @@ class TextDocument
|
||||
/** @var array{type: string, snippet: string, line_from: int, line_to: int} */
|
||||
$data = (array)$diagnostic->data;
|
||||
|
||||
//$file_path = LanguageServer::uriToPath($textDocument->uri);
|
||||
//$contents = $this->codebase->file_provider->getContents($file_path);
|
||||
|
||||
$snippetRange = new Range(
|
||||
new Position($data['line_from']-1),
|
||||
new Position($data['line_to']),
|
||||
@ -451,9 +454,7 @@ class TextDocument
|
||||
$textDocument->uri => [
|
||||
new TextEdit(
|
||||
$snippetRange,
|
||||
"{$indentation}/**\n".
|
||||
"{$indentation} * @psalm-suppress {$data['type']}\n".
|
||||
"{$indentation} */\n".
|
||||
"{$indentation}/** @psalm-suppress {$data['type']} */\n".
|
||||
"{$data['snippet']}\n",
|
||||
),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user