MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / scan_workspace_fallback

Function scan_workspace_fallback

src/classmap_scanner.rs:426–431  ·  view source on GitHub ↗

Scan all `.php` files under the workspace root using the PSR-4 scanner (`find_classes`), excluding hidden directories, gitignored directories, and vendor directories. This is a classes-only fallback used when `composer.json` cannot be parsed. Prefer [`scan_workspace_fallback_full`] for the no-Composer scenario so that functions and constants are also discovered. `vendor_dir_paths` contains abso

(
    workspace_root: &Path,
    vendor_dir_paths: &[PathBuf],
)

Source from the content-addressed store, hash-verified

424/// directories. Pass a single-element slice with the vendor directory
425/// for single-project workspaces.
426pub fn scan_workspace_fallback(
427 workspace_root: &Path,
428 vendor_dir_paths: &[PathBuf],
429) -> HashMap<String, PathBuf> {
430 scan_directories(&[workspace_root.to_path_buf()], vendor_dir_paths)
431}
432
433/// Scan a batch of files for class names in parallel and return a classmap.
434///

Calls 1

scan_directoriesFunction · 0.85