Well, it solved it for Manager, Query, BulkWrite and Command, which is really great to get that messages out.
Still marks as unkown:
MongoDB\\BSON\\ObjectID
and MongoDB\\BSON\\UTCDateTime
[{
"resource": "[...]/util/MongoUtil.php",
"owner": "_generated_diagnostic_collection_name_#2",
"code": "PHP0413",
"severity": 4,
"message": "Use of unknown class: 'MongoDB\\BSON\\ObjectID'",
"source": "PHP",
"startLineNumber": 36,
"startColumn": 20,
"endLineNumber": 36,
"endColumn": 42
},{
"resource": "[...]/util/MongoUtil.php",
"owner": "_generated_diagnostic_collection_name_#2",
"code": "PHP0413",
"severity": 4,
"message": "Use of unknown class: 'MongoDB\\BSON\\UTCDateTime'",
"source": "PHP",
"startLineNumber": 55,
"startColumn": 20,
"endLineNumber": 55,
"endColumn": 45
}]