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

Method should_skip_diagnostics

src/diagnostics/mod.rs:197–199  ·  view source on GitHub ↗

Returns `true` if the URI should be skipped for diagnostics (stub files only). Vendor files are not skipped because diagnostics only run on files the user has open in the editor, and users working in monorepos or with `--prefer-source` packages legitimately edit vendor files.

(&self, uri_str: &str)

Source from the content-addressed store, hash-verified

195 /// and users working in monorepos or with `--prefer-source`
196 /// packages legitimately edit vendor files.
197 fn should_skip_diagnostics(&self, uri_str: &str) -> bool {
198 uri_str.starts_with("phpantom-stub://") || uri_str.starts_with("phpantom-stub-fn://")
199 }
200
201 /// Collect Phase 1 (fast) diagnostics: syntax errors, unused
202 /// imports. These are cheap — no type resolution.

Calls

no outgoing calls

Tested by

no test coverage detected