1
0
Fork 0

Only insert backslash if not typed yet

pull/165/head
Felix Becker 2016-11-23 00:13:44 +01:00
parent e4e4e3f050
commit 6adb3f48e1
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class CompletionProvider
if ($namespace && ($alias = array_search($def, $aliasedDefs, true)) !== false) { if ($namespace && ($alias = array_search($def, $aliasedDefs, true)) !== false) {
// $alias is the name under which this definition is aliased in the current namespace // $alias is the name under which this definition is aliased in the current namespace
$item->insertText = $alias; $item->insertText = $alias;
} else if ($namespace) { } else if ($namespace && !($prefix && $isFullyQualified)) {
// Insert the global FQN with trailing backslash // Insert the global FQN with trailing backslash
$item->insertText = '\\' . $fqn; $item->insertText = '\\' . $fqn;
} else { } else {