microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

Allow multiple custom configuration providers #6512

Open Colengms opened 3 years ago

Colengms commented 3 years ago

It would be possible to support multiple custom configuration providers in the same workspace folder. They could be queried in the order specified. The type of configurationProvider could be string | string[].

sean-mcmanus commented 3 years ago

Was there a known, mainstream scenario where we expect one configuration provider to not be able to provide a configuration but the fallback to be able to?

Colengms commented 3 years ago

Not that I know of. This is based on a chat with Bob regarding https://github.com/microsoft/vscode-cpptools/issues/6150 . That feature currently only applies if only 1 provider is registered. If a second registers, it reverts to not using a config provider, as it's unclear which to use. But, it should be possible to support multiple config providers. If/when we do, we auto-configuration could use all of them.