GithubHelp home page GithubHelp logo

olsh / resharper-configuration-sense Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 6.0 544 KB

An extension for ReSharper and Rider IDE that provides autocomplete and validation for App settings and Connections strings

License: MIT License

C# 90.43% Batchfile 0.30% PowerShell 4.32% Shell 3.35% Kotlin 1.61%
resharper autocomplete jetbrains-plugins rider

resharper-configuration-sense's People

Contributors

centreboard avatar dependabot[bot] avatar m7clarke avatar olsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

resharper-configuration-sense's Issues

Environment Appsettings

I had noticed the configuration sense doesn't take in account of appsettings.environmentName.json.

Perhaps this can be supported?

Thanks for the extension!

Doesn't work when config files are in another project.

We have our solutions broken out in multiple projects. If I'm not in the startup project I only see warnings "Section wasn't found in configuration files.". Is there a way to get this plugin to look at any configuration file in the open solution? I also tried adding the specific files in the Configuration in Resharper but it still won't look at those. But with all of the different repositories I work in, having to add them all into the Configuration page would be a bit much. Allowing relative paths or regex for different folders or configuration files would be nice.

Update to 2016.2.3 gives error

Update completes with error:

Execute Build Step Runnable JetBrains.Platform.VisualStudio.SinceVs10!JetBrains.Platform.VisualStudio.SinceVs10.TextControl.Markup.FormatDefinitions.Install.VsPackageEmitsVsClassificationFormatDefinitions::VsPackageEmitVsClassificationFormatDefinitions#3 has failed. The build step method JetBrains.Platform.VisualStudio.SinceVs10.TextControl.Markup.FormatDefinitions.Install.VsPackageEmitsVsClassificationFormatDefinitions::VsPackageEmitVsClassificationFormatDefinitions has thrown an exception. Exception has been thrown by the target of an invocation. Could not load file or assembly 'JetBrains.Platform.TextControl, Version=106.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325' or one of its dependencies. The system cannot find the file specified.

After restarting VS the extension still seems to work, should this error be ignored?

Resharper 2019.1 support

It looks like this needs updated for 2019.1 release that just came out. I can no longer see it in the extension list after updating resharper.

Support for ASP.NET Core appsettings.json ?

Hello. Does this currently (or is it planned to) support the new configurations for ASP.NET Core 1.0?

There doesn't seem to be a schema, but there is a .json file available with the currently configured settings. Here's an example:

{
  "ConnectionStrings": {
    "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-Ditra.Web-429f8d2d-971a-4358-94fd-e3d762039c60;Trusted_Connection=True;MultipleActiveResultSets=true"
  },
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
}

Getting an instance of the configuration is done like this:

var builder = new ConfigurationBuilder()
    .SetBasePath(env.ContentRootPath)
    .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);
var configuration = builder.Build();
var sytemLogLevel = configuration["Logging:System"];

Would be great to have intellisense on the last line of above example to type out "Logging:System".
One can also add user secrets to the builder, which is basically just include a json file stored somewhere else on the system, specific for the project ID. You can read more about that here: https://docs.asp.net/en/latest/security/app-secrets.html

To begin with, it would be great to just have intellisense for the properties configured appsettings.json
If you can include other sources, I guess that would be useful too, but maybe another milestone.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.