You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constnsResolverExtension=vscode.extensions.getExtension('ctf0.php-namespace-resolver');if(nsResolverExtension==null){thrownewError("'ctf0.php-namespace-resolver' is required");}constNS_EXTENSION_PROVIDER=awaitnsResolverExtension.activate();// now u can use it like soNS_EXTENSION_PROVIDER.getNamespace(vscode.window.activeTextEditor.document.uri)// get namespace by file uriNS_EXTENSION_PROVIDER.insertNamespace()// insert namespace in current active file
# Check for namespaces project wide
make sure to run composer dump first & fix any reported issues.
run PHP Namespace Resolver: Check for namespaces project wide
note that commented out FQN will show up in the problems panel as well, the cmnd lists all the namespaces that are unknown regardless of its position
also you might get positive-negative results because of nested namespaces, which will need more work to check if the namespace correspond to an actual file path or not