olsh / resharper-configuration-sense Goto Github PK
View Code? Open in Web Editor NEWAn extension for ReSharper and Rider IDE that provides autocomplete and validation for App settings and Connections strings
License: MIT License
An extension for ReSharper and Rider IDE that provides autocomplete and validation for App settings and Connections strings
License: MIT License
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.
Hi,
Is there any chance you could bring this logic into a VSIX that enhances Visual Studio's built-in IntelliSense?
dotnet/roslyn#18866
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.
When I import IConfiguration
in another class (same project as the website), the configuration sense isn't picked up when I try to use the indexer on that instance.
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.
I had noticed the configuration sense doesn't take in account of appsettings.environmentName.json.
Perhaps this can be supported?
Thanks for the extension!
After installing 2021.1, this extension appears to no longer be in the list.
Thanks!
.NET Core autocomplete does't work with local variable.
Example:
var builder = new ConfigurationBuilder();
builder.AddUserSecrets();
var configuration = builder.Build();
return configuration["token"];
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.