* Don't add completions from a discriminated union type when the discriminant doesn't match * Move code to checker * Update API (#24966) * Use isTypeIdenticalTo