Skip to content

Commit

Permalink
added missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw committed Apr 24, 2021
1 parent de9275d commit 3034eec
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
5 changes: 0 additions & 5 deletions global.json

This file was deleted.

25 changes: 25 additions & 0 deletions src/OmniSharp.Host/ConfigurationResult.cs
@@ -0,0 +1,25 @@
using System;
using Microsoft.Extensions.Configuration;

namespace OmniSharp
{
public class ConfigurationResult
{
public ConfigurationResult(IConfigurationRoot configuration)
{
Configuration = configuration;
}

public ConfigurationResult(Exception exception)
{
Exception = exception;
Configuration = new ConfigurationRoot(Array.Empty<IConfigurationProvider>());
}

public IConfigurationRoot Configuration { get; }

public Exception Exception { get; }

public bool HasError() => Exception != null;
}
}

0 comments on commit 3034eec

Please sign in to comment.