VSCode is recognizing not recognizing certain namespaces eg(UI)

So yeah First let me make it clear that I HAVE INSTALLED UI package AND EVERYTHING WORKS FINE IN UNITY EDITOR But I am stuck with 6000+ errors in the VSCode editor, more weird is the fact that Intellisense is only working for certain things for example it recognizes UnityEngine as valid code while if I try to use UnityEngine.UI it shows this

The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?) [Assembly-CSharp]

For some reason downgrading to 1.1.3 fixed it and now I am confused a fuck why is a older version working better than a 2019.4 verified version