vscode-csharp
vscode-csharp copied to clipboard
Can't view C# Source Code after Decomplication Enabled
Hello,
I cannot view the c# source code with the standard libraries in C#. Here are the steps to reproduce.
Steps to reproduce
- Open vscode.
- Go to settings -> extensions -> and -> C# -> Omnisharp -> Omnisharp: Enable Decomplication Support
- Click on the checkbox next to "Enables support for decompiling external references instead of viewing metadata":
- 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":
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"
If you're not using O#, the correct option is this:
However, we currently we don't decompile source from the SDK. That is tracked by https://github.com/dotnet/vscode-csharp/issues/6784