dpack icon indicating copy to clipboard operation
dpack copied to clipboard

Code browser/All members - support for record

Open Jarek300 opened this issue 4 years ago • 2 comments

Command 'Code browser/All members' shows members of classes and structs but not records (new in C# 9).

Jarek300 avatar Dec 14 '20 14:12 Jarek300

Thanks for reporting it. I'll investigate to see if it's exposed via VS extensibility API.

sergey-visual-studio avatar Dec 15 '20 00:12 sergey-visual-studio

Took a couple of weeks off but kept an eye on it. Investigated it around the holidays and as I suspected, VS file code model doesn't support it. It gets worse though. Turns out Microsoft's done extending file code model APIs, that's the API set that's been there since practically earliest versions of VS, and put their efforts into Roslyn now. File code model is what DPack's been relying on since first version as well. I'm gonna be looking into swapping out the file processor to use Roslyn APIs instead.

Microsoft's Roslyn unfortunately doesn't support C++ file parsing, which DPack supports (via file code model). I'll need to look for a standalone C++ parser library if I am to address this issue, ultimately replacing one API set with 2 now, which is unfortunate. If anybody is interested in taking it on please reach out.

sergey-visual-studio avatar Jan 09 '21 15:01 sergey-visual-studio