Skip to content
Permalink
Browse files

Improve autocompletion by using CompletionItem::$detail for type info (

  • Loading branch information...
iluuu1994 authored and muglug committed Jun 21, 2019
1 parent 2a4072b commit c74e196e3c0454d3377d5a4496e21056df7db767
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Psalm/Codebase.php
@@ -1201,9 +1201,9 @@ public function getCompletionItemsForClassishThing(string $type_string, string $
$method_storage = $this->methods->getStorage($declaring_method_id);
$completion_item = new \LanguageServerProtocol\CompletionItem(
(string)$method_storage,
$method_storage->cased_name,
\LanguageServerProtocol\CompletionItemKind::METHOD,
null,
(string)$method_storage,
null,
(string)$method_storage->visibility,
$method_storage->cased_name,
@@ -1223,9 +1223,9 @@ public function getCompletionItemsForClassishThing(string $type_string, string $
);
$completion_item = new \LanguageServerProtocol\CompletionItem(
$property_storage->getInfo() . ' $' . $property_name,
'$' . $property_name,
\LanguageServerProtocol\CompletionItemKind::PROPERTY,
null,
$property_storage->getInfo(),
null,
(string)$property_storage->visibility,
$property_name,

0 comments on commit c74e196

Please sign in to comment.
You can’t perform that action at this time.