Skip to content

[Bug]: Autocompletion for config('') doesn't work when accessing files in deeply nested folder structures. #426

@duprayj782sdnm

Description

@duprayj782sdnm

Extension Version

1.0.11

PHP Binary

Sail

Operating System

macOS

What happened?

Here’s an example folder structure within the config directory:

config/
    integrations/
        amazon/
            endpoints.php
        list.php

Ideally, when using config('integrations.amazon.endpoints') in the code, VS Code should provide autocomplete suggestions for this path and make it clickable. However, the Laravel Extension currently flags config('integrations.amazon.endpoints') with the error:
Config [integrations.amazon.endpoints] not found. Laravel Extension(config)

Other config files, such as config/integrations/list.php, are correctly recognized and available via autocomplete.
This issue appears to be specific to config files nested deeper within subfolders.

Mimimal Code Sample

// Autocompletion works
config('integrations.list');
config('integrations.list.keyName');

// Autocompletion doesn't work
config('integrations.amazon.endpoints');
config('integrations.amazon.endpoints.keyName');

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions