omnisharp-roslyn icon indicating copy to clipboard operation
omnisharp-roslyn copied to clipboard

Toggle nullable context in `omnisharp.json` for csx scripts

Open colinfang opened this issue 2 years ago • 0 comments

I am using vscode C# extension to manage a few csx scripts without .csproj

My omnisharp.json is

"script": {
     "enableScriptNuGetReferences": true,
     "defaultTargetFramework": "net6.0"
}

However, by default it doesn't enable nullable context, unless I add #nullable enable at the top of csx.

Would it be possible to toggle nullable context via omnisharp.json similar to <Nullable>enable</Nullable> in .csproj?

colinfang avatar Apr 22 '22 18:04 colinfang