question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The omnisharp.enableDecompilationSupport setting doesn't enable decompilation

See original GitHub issue

VSCode version: 1.60.2 C# Extension: 1.23.16

Steps to reproduce

Set the omnisharp.enableDecompilationSupport to true in VSCode’s settings.json.

Expected behavior

F12 (Go to Definition) should navigate to the decompiled the source code.

Actual behavior

It doesn’t, but just navigates to metadata. So omnisharp.enableDecompilationSupport looks like having no effect.

Look like, leave this setting with its default value, i.e., omnisharp.enableDecompilationSupport = false, but adding the below settings into the file %USERPROFILE%/.omnisharp/omnisharp.json

    "RoslynExtensionsOptions": {
        "enableDecompilationSupport": true
    }

will just enable the decompilation feature.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
filipwcommented, Oct 13, 2021

Setting "omnisharp.enableDecompilationSupport": true would also trigger a disclaimer warning which you need to accept, perhaps you didn’t?

You can re-trigger the pop up by launching the CSharp: Show the decompiler terms agreement command

0reactions
cateyes99commented, Oct 14, 2021

@JoeRobich this way sounds good 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decompilation support in OmniSharp and C# ... - StrathWeb
Support for decompilation was one of the most requested features for OmniSharp, so we are thrilled to finally be able to include it...
Read more >
Is there a way to see decompiled C# code in VS Code?
You can turn on the setting "Enable Decompilation Support", which is disabled per default. After turning that on, you should be able to...
Read more >
Decompilation support in OmniSharp and C# ... - DotNetKicks
One of the nice new features that we shipped in OmniSharp recently, and that has already made its way into the C# Extension...
Read more >
C# - Visual Studio Marketplace
Microsoft. C# for Visual Studio Code (powered by OmniSharp). Launch VS Code Quick Open ( Ctrl+P ), paste the following command, and press...
Read more >
visual studio free download - SourceForge
This setting can be set for all languages or by a specific language. ... Visual Studio 2022 ships with decompilation support for F12...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found