Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich committed Dec 20, 2024
1 parent abe1143 commit e9cb10f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ internal static bool UpdateOptions(Workspace workspace, OmniSharpEditorConfigOpt

var newSolution = oldSolution.WithFallbackAnalyzerOptions(newFallbackOptions);
return workspace.TryApplyChanges(newSolution);

void AddOption<T>(
PerLanguageOption2<T> option,
T value)
{
var configName = option.Definition.ConfigName;
var configValue = option.Definition.Serializer.Serialize(value);
builder[configName] = configValue;
}
}
catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.Diagnostic))
{
throw ExceptionUtilities.Unreachable();
}

void AddOption<T>(
PerLanguageOption2<T> option,
T value)
{
var configName = option.Definition.ConfigName;
var configValue = option.Definition.Serializer.Serialize(value);
builder[configName] = configValue;
}
}
}

0 comments on commit e9cb10f

Please sign in to comment.