Skip to content

Commit

Permalink
Merge pull request #1319 from OmniSharp/feature/config-json-kill
Browse files Browse the repository at this point in the history
Removed unused / obsolete config.json from configuration system
  • Loading branch information
filipw authored Oct 26, 2018
2 parents a9b9d71 + 462fd5f commit bc9e22c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ All changes to the project will be documented in this file.

## [1.32.7] - not yet released
* It's now possible to override the default location of OmniSharp's global folder (%USERPROFILE%\.omnisharp or ~/.omnisharp.) with an OMNISHARPHOME environment variable (PR: [#1317](https://github.com/OmniSharp/omnisharp-roslyn/pull/1317))
* OmniSharp no longer searches for `config.json` in its source directory to load configuration (PR: [#1319](https://github.com/OmniSharp/omnisharp-roslyn/pull/1319))

## [1.32.6] - 2018-10-02
* Fixed a bug where virtual C# documents would not get promoted to be a part of a project. (PR: [#1306](https://github.com/OmniSharp/omnisharp-roslyn/pull/1306)).
Expand Down
4 changes: 1 addition & 3 deletions src/OmniSharp.Host/ConfigurationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public ConfigurationBuilder(IOmniSharpEnvironment environment)
{
_environment = environment;
_builder = new Microsoft.Extensions.Configuration.ConfigurationBuilder()
.SetBasePath(AppContext.BaseDirectory)
.AddJsonFile(Constants.ConfigFile, optional: true);
.SetBasePath(AppContext.BaseDirectory);
}

public IConfigurationBuilder Add(IConfigurationSource source)
Expand All @@ -30,7 +29,6 @@ public IConfigurationRoot Build()
{
var configBuilder = new Microsoft.Extensions.Configuration.ConfigurationBuilder()
.SetBasePath(AppContext.BaseDirectory)
.AddJsonFile(Constants.ConfigFile, optional: true)
.AddEnvironmentVariables("OMNISHARP_");

if (_environment.AdditionalArguments?.Length > 0)
Expand Down
3 changes: 1 addition & 2 deletions src/OmniSharp.Host/Internal/OmniSharpConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
internal static class Constants
{
internal const string ConfigFile = "config.json";
internal const string OptionsFile = "omnisharp.json";
}
}
}

0 comments on commit bc9e22c

Please sign in to comment.