-1

I am trying to get linting to work on VS Code with an .editorconfig file in VS Code. I am not really at home in the C# ecosystem, so I tried following some guides. Like this article, most people suggest adding this to your settings.json:

{
  "omnisharp.enableRoslynAnalyzers": true,
  "omnisharp.enableEditorConfigSupport": true
}

The first setting seems to be replaced by "dotnet.backgroundAnalysis.analyzerDiagnosticsScope": "openFiles" so I changed that, but I still do not get linting errors. The guide suggests restarting Omnisharp but there is no option for that anymore. It seems to me this is due to the .Net team majorly changing the C# plugin, but I am confused as to what is actually happening and how I apply the "old" settings to the new system. It doesn't help that I don't know what to look for, and most articles aren't updated.

I guess my question is twofold:

  1. Can someone explain what parts make up the C# tooling, and what is happening in the Ecosystem? Where should I look for linting options if not Omnisharp?
  2. How can I apply the old Omnisharp settings, specifically the .editorconfig settings, to the new system?
1

1 Answer 1

0

I should have just read on in the article 🤦🏻. The errors don't actually become visible until you fail the build.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.