private static async Task <ImmutableArray <ITagSpan <InlineDiagnosticsTag> > > GetTagSpansAsync(TestWorkspace workspace) { workspace.ApplyOptions(new[] { KeyValuePairUtil.Create(new OptionKey2(InlineDiagnosticsOptions.EnableInlineDiagnostics, LanguageNames.CSharp), (object)true) }); return((await TestDiagnosticTagProducer <InlineDiagnosticsTaggerProvider, InlineDiagnosticsTag> .GetDiagnosticsAndErrorSpans(workspace)).Item2); }