Open LokiMidgard opened 1 year ago
csharp_style_allow_embedded_statements_on_same_line_experimental = false:warning
You'll need to set this one to true.
@CyrusNajmabadi I actually want to forbid embadded statments on the same line
// Here I want a warning
if ('a' == 'a') Console.WriteLine("Hello, World!");
just not for the braces…
(I updated the repo including the above code)
This is not a supported config for those options.
Version Used:
8.0.100-preview.7.23376.3
Steps to Reproduce:
.editorconfig
:csharp_style_allow_embedded_statements_on_same_line_experimental = false:warning
csharp_new_line_before_open_brace = false
A minimal repro, with source-code provided, is ideal. https://github.com/LokiMidgard/bugRepoIDE2001
Diagnostic Id: IDE2001
Expected Behavior: No Warning if only an open brace is in the same line
Actual Behavior: Warns when an opening brace is there