vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Can't view C# Source Code after Decomplication Enabled

Open karl-gardner opened this issue 1 year ago • 1 comments

Hello,

I cannot view the c# source code with the standard libraries in C#. Here are the steps to reproduce.

Steps to reproduce

  1. Open vscode.
  2. Go to settings -> extensions -> and -> C# -> Omnisharp -> Omnisharp: Enable Decomplication Support
  3. Click on the checkbox next to "Enables support for decompiling external references instead of viewing metadata":
image
  1. Type any c# line using standard functions or classes. For example: var list = new List(); Then right click on List and select "Go to implementations".

Expected behavior

This should go to the source code for the generic List<T> class in System.Collections.Generic

Actual behavior

This does not actually go to source code and just says "No implementation found for List":

image

Additional context

I have seen other posts about this such as the following: https://github.com/dotnet/vscode-csharp/issues/4817

but not actually able to find where to put the following command: "CSharp: Show the decompiler terms agreement"

karl-gardner avatar Feb 26 '24 02:02 karl-gardner

If you're not using O#, the correct option is this: image

However, we currently we don't decompile source from the SDK. That is tracked by https://github.com/dotnet/vscode-csharp/issues/6784

dibarbet avatar Mar 20 '24 18:03 dibarbet