If there is no entry for the filepath in the hashmap, consider its offset +0 All DiagnosticEntry with is_external_module_with_file and Some doc_comment will have 1 ...
As of now, pylance is not usable at all (will always crash because it reaches the VScode memory limits) for monorepos. I would suggest a setting that prevents making background threads for each root ...