Omnisharp-vscode: suddenly, VSC doesnt recognize C# extensions

Created on 5 Mar 2020  路  11Comments  路  Source: OmniSharp/omnisharp-vscode

So, I've been using VSCode for a few years now, primarily for C# and Unity. Was using it just fine today as I do every day, when it suddenly started complaining that it doesn't recognize ".csharp" and .cs files.

I have been using the official Microsoft c# extension.

The pop up to recommend an extension after that error, has an install button. if I press that, the extensions panel shows that it searches for @id:ms-vscode.csharp and the results are "No Extensions Found"

My VScode was configured to auto-update VSC and extensions. I can only assume an update broke something.

I can still open .cs files and auto-complete of code seems to still work, but options like F12 (Go To Definition) cause a blue progress bar to animate at the top of VSC and nothing else happens.

I tried disabling extensions, restart VSC, rebooting the entire system, re-installing the c# extension... nothing helps.

I also deleted my Unity project's .vscode folder. Didn't help.

Omnisharp is running.

Resolved-Duplicate Triaged

Most helpful comment

@BigGodMike uninstall, download from https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.21.12 and install from VSIX (see screenshot).
Make sure to hit Disable Auto Updating Extensions if you see that option in the same menu so it stays at the correct version.
image

All 11 comments

Same issue as #3622. Rolling back the version fixed the issue, so your assumption of an update is correct, as version 1.21.13 was published mid-day today.

This is happening to us as well and it reverts settings.

Same issue as #3622. Rolling back the version fixed the issue, so your assumption of an update is correct, as version 1.21.13 was published mid-day today.

Yes, I try roll back to previous version, But VsCode just tell me that can not install ms-dotnettools.csharp and still the 1.21.13 is not fix the issue

@BigGodMike uninstall, download from https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.21.12 and install from VSIX (see screenshot).
Make sure to hit Disable Auto Updating Extensions if you see that option in the same menu so it stays at the correct version.
image

@farchi Yes, Man, your screenshot help me directly to fix the issue ,Thanks a lot

thanks

@BigGodMike uninstall, download from https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.21.12 and install from VSIX (see screenshot).
Make sure to hit Disable Auto Updating Extensions if you see that option in the same menu so it stays at the correct version.
image

it works, thanks

Thank you for the rollback instructions. I've reverted to the previous version of the extension. While this allows me to work, and have Intellisense back in working order, the "problem" isn't truly solved until either the Marketplace ID is reverted or VSCode is updated to look for the new extension ID. It shouldn't be prompting to install an extension that it can not find.

@farchi thanks, you saved my code night <3

This also broke all the extensions that depend on this!

Thanks for reporting. The issue is due to the publisher rename, which has broken the unity extension. There is a pull request out on the unity extension, and once that is merged and updates go through, it should be resolved. Closing as a duplicate of #3620

Was this page helpful?
0 / 5 - 0 ratings