Skip to content

Code completion #321

Closed
Closed
@nadar

Description

@nadar

Hi, maybe i am in the wrong repo but i was not able to find out if its a "missing" feature by design, a wrong configuration or just related to vscode.

I was trying out vscode several times but code completion does not work as expected or as i already mentioned it was never be intended to work like this:

Assuming i have 2 files not in the same directory, but in the same namespace:

foo/Foo1.php:

namespace foo;

class Foo1
{

}

foo/bar/Bar1.php:

namespace foo/bar;

class Bar1
{

}

the code completion is not able to detected the Bar1 class when typing in Foo1. For my understanding of code completion it should be possible to find all classes inside the current work directory while typing. After selecting the class it will be written to use statement section. This is what Eclipse PDT, PHPStorm or others does.

If i have two files in the same directory, the suggestion works but only for files in the same directory.

So i am just wondering if this feature not implemented, does not work on my machine or any other reason? I tested on OSX and Ubuntu 18.10 with latest VSCODE and intellisense extension, also trying to configure the path to the php bin file and disable default completion. For example Eclipse PDT does have an indexing process, afterwards all classes are available (also from vendor folder).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions