spectacles / CodeComplice

CodeIntel for Sublime Text 2 / 3
Other
167 stars 18 forks source link

Is there support for auto-completion from a parent class? #52

Closed mityukov closed 7 years ago

mityukov commented 7 years ago

I mean, is this feature even presumed?

Let say, I have a base class:

class ABook
{
    const TYPE_NOVEL = 'novel',
    const TYPE_USER_MANUAL = 'manual';
    const TYPE_COLORING_BOOK = 'coloring';
    // ...
}

Then, in another file, I want to reference one of those constants:

class UsedBook extends ABook {
    // ...
    if ($this->type == self::TYPE_ /// <<< here, I need a list of all available types to be suggested
mityukov commented 7 years ago

Sorry, it looks I just had to wait a bit longer :-)