Describe the bug
When defining a struct at file scope, the Designated initializers do not work (often). Sometimes and for some structs they actually work but for some other types they don't. However, for the structs that they do not work, they will work if we define the variable inside a function. I've created a very simple example where I could experience this issue (screenshots below).
Expected behavior
Structs members to appear in the auto complete list
Screenshots


Hi @nunojsa . Thanks for reporting this. I believe this is the same issue as: https://github.com/microsoft/vscode-cpptools/issues/4966
The bug repros with VS (i.e. due to our shared code) and has been reported at https://developercommunity.visualstudio.com/content/problem/1223052/c-intellisense-doesnt-work-for-designated-initiali.html .
Same problem here.
Most helpful comment
The bug repros with VS (i.e. due to our shared code) and has been reported at https://developercommunity.visualstudio.com/content/problem/1223052/c-intellisense-doesnt-work-for-designated-initiali.html .