'UnityEngine.UI not recognized by vs code and vs community [FIXED]

So i updated my unity to 2021.2.3f1, and vs code and vs community doesn't recognize UnityEngine.UI, i've tried: reinstalling Unity Hub, reinstalling vs code and vs community, regenerating project files, changing stuff in manifest.json (in packages folder), restarting OmniSharp. Nothing worked. It works in the older versions of unity. Also, TMPro doesn't work either. using UnityEngine.UI not being recognized



Solution 1:[1]

FIXED

I fixed it by changing the "Visual Studio Code Editor" package version to 1.2.5 in the unity package manager.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 HEJOK254