pub fn detect_language_from_source(path: &Path, source: &str) -> Option<LangId>
Detect against the caller’s source snapshot rather than reopening the file.