codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

Code maid doesn't show spade digger for Decompiled sources

Open vinaychandra opened this issue 5 years ago • 4 comments

Environment

  • Visual Studio version: 2019 Enterprise
  • CodeMaid version: 11.0
  • Code language: C#

Description

Visual studio has experimental decompile sources support. When decompiling such files, spade does not show the correct code structure.

Steps to recreate

  1. Enable Enable navigation to decompiled sources in Text Editor -> C# -> Advanced
  2. Try to decompile any class.
  3. Open the spade window

Current behavior

The spade window just shows the assembly name and no structure

Expected behavior

File structure should be displayed.

image image

vinaychandra avatar Apr 16 '19 22:04 vinaychandra

Thanks for reporting the issue. This is unfortunately as expected as the VS API we leverage to retrieve the code model does not return results for decompiled sources.

codecadwallader avatar Apr 18 '19 09:04 codecadwallader

@codecadwallader, Codenav also has a similar functionality but can do this. Can we leverage to enable such functionality in CodeMaid?

vinaychandra avatar Apr 18 '19 15:04 vinaychandra

It looks like they're leveraging Roslyn (newer VS API) which we are looking to leverage as well but will require a significant rewrite as we've built a lot of code over the years on the older VS APIs.

codecadwallader avatar Apr 19 '19 09:04 codecadwallader

I would love this feature too, to read the file and show me the methods available in a class in C# from .NET assembly code.

Mike-Logit avatar Aug 02 '22 10:08 Mike-Logit

I would like to weigh in on this too. Being able to "spade" thr assemblies would be awesome! No pressure :) !

NickCodesDotNET avatar Dec 29 '22 20:12 NickCodesDotNET