question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When using configurationProvider, what other configs are needed?

See original GitHub issue

When setting CMake Tools to be configurationProvider for the C++ extension, does it make all other properties in c_cpp_properties.json redundant?

Or will c_cpp_properties.json override the provider? Or the other way around?

Right now I have a c_cpp_properties.json with configs for Win and Mac with quite a few properties. I’m wondering if I can trim down a bunch of these to make the JSON simpler and reduce risk of duplicate information getting out of date.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
bobbrowcommented, Nov 19, 2019

I need to open an issue against cpptools to delay showing that compileCommands prompt. CMake Tools won’t register as a config provider until you successfully configure the project. Sometimes this takes a while.

1reaction
bobbrowcommented, Nov 18, 2019

cpptools prefers the “configurationProvider” over any other setting. The remaining settings are only used if the configurationProvider is unable to give a configuration for the source file you’ve opened in the editor.

Short story: You should be able to remove the majority of the other properties in c_cpp_properties.json if you are using “configurationProvider”.

{
  "name": "config",
  "configurationProvider": "vector-of-bool.cmake-tools"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration providers - .NET - Microsoft Learn
Configures the JSON configuration provider to load the appsettings.json and appsettings. Environment .json files with the following options:.
Read more >
ASP.NET Core Configuration - Configuration Providers
In this article, we're going to talk about different configuration providers in ASP.NET Core applications.
Read more >
Creating a custom ConfigurationProvider in ASP.NET Core to ...
ASP.NET Core ships with a new configuration system. In this post I show how to create a custom configuration provider to load YAML...
Read more >
Option patterns with custom configuration provider in .NET
AddJsonFile() method enables to get the configuration from a configuration file. I'll explain the other parameter later. You need to configure the KafkaOptions ......
Read more >
Creating a custom ConfigurationProvider for a Entity ...
It lets you aggregate many configuration values from multiple different sources, and then access those in a strongly typed fashion using the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found