vscode-code-outline icon indicating copy to clipboard operation
vscode-code-outline copied to clipboard

Flat symbol list C#

Open mattliewer opened this issue 7 years ago • 7 comments

In the latest version, for C# files, all symbols show up as a flat list.

flathierarchy

mattliewer avatar Oct 10 '17 01:10 mattliewer

I guess C# reports symbols differently to most other languages. Unfortunately previous approach broke in many more languages so I think the best solution would be to file a bug against the C# symbol provider and have it report symbol ranges containing the entire class/method definition instead of just their names/signatures.

patrys avatar Oct 10 '17 09:10 patrys

Ok, that makes sense. Any chance of providing an option in the settings to use the old method? I know that would not be ideal, but I miss having this work. :)

mattliewer avatar Nov 10 '17 05:11 mattliewer

I would really like to see the fallback option as well. Is there a plan to implement a fallback for C# through the settings?

christian-putzke avatar Dec 19 '17 09:12 christian-putzke

No, sorry. The old method really did not work well for any languages.

patrys avatar Dec 19 '17 09:12 patrys

is the code outline in your image is the same with outline? I have the lastest version of VSC but it can't parse my C# files. Imgur

longtth avatar Jun 18 '18 05:06 longtth

@longtth I see the same behavior both in the code outline extension and the new built in outline functionality that ships with VS Code. If I am understanding your question correctly.

mattliewer avatar Jun 28 '18 15:06 mattliewer

@mattliewer : as you can see here Imgur, the VSC 1.24.1 can't outline my Csharp file.

longtth avatar Jul 09 '18 06:07 longtth