Only insert backslash if not typed yet
parent
e4e4e3f050
commit
6adb3f48e1
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue