'name space highlighting is not working in visual studio when using modules declaration instead of headers

i'm working on C++20 standard but a weird scenario happens when I started using import statement instead of #include suddenly namespace highlighting is not working properly.

working: working highlight

not working: not working highlight

I don't know what is going on here I suspect it highlights according to a different thing now



Solution 1:[1]

This should be a bug of Visual Studio. When using import, the intellisense will not work. You could report the problem to Developer Community. Related issues have also been reported.

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 Minxin Yu - MSFT