Community
Participate
Working Groups
Created attachment 261570 [details] Screen clip showing hover preview with only last line of typedef struct Where a typedef declaration is defining a type based on a struct or union, the hover preview only shows the last line (where the new type is named). See attached screen clipping. In header file, there is: typedef struct { int field0; int field1; } mytype; In code source file, there is: mytype myvar; When hovering over "mytype", I pressed F2, then resized the resulting floating window larger. Only the last line of the typedef was in the preview: } mytype; i would expect to be able to see (or scroll through) the full text typedef struct much like I can scroll through the full text of a function in the preview.
I'm not able to reproduce this issue with the small code example ("mytype") you posted. Could you attach a complete code file that demonstrates your issue? Thanks!
I'm still working on creating a "test article" demonstrating the problem. Right now, the closest I can get is to #include the same header file that was used in the example in the screen clip. Unfortunately, that header file is for a commercial third party library, so I can't include it. I am attempting to isolate what in it might be causing the problem. Once I succeed, I will try to create a new header file that duplicates the problem.
Created attachment 261621 [details] C source file for test artifact to demo problem
Created attachment 261622 [details] C header file of test artifact to demo the problem
Attached a C source and a C header that seem to show the problem. Don't know if it's the * but defining 2 user types in the typedef and using the second seems to have triggered the problem.
Thank you for the example, I can reproduce the problem now. Note that it does not seem to be required for the structure to be defined in a separate file; the same problem occurs when it is defined in the same file.