Provide (default) configurations for sources not listed in CMakeLists.txt, based on file type #2530
Labels
enhancement
an enhancement to the product that is either not present or an improvement to an existing feature
Feature: cpptools integration
Milestone
Brief Issue Summary
Currently, if the C/C++ extension doesn't receive a custom configuration from CMake Tools for a file, it will opportunistically fall back to using the
compilerPath
andcompilerArgs
provided with the custom browse configuration (aWorkspaceBrowseConfiguration
). Unfortunately, theWorkspaceBrowseConfiguration
might apply only to C++ files and not C files, or vice versa, as it contains only a singlecompilerPath
andcompilerArgs
.Perhaps CMake Tools could provide appropriate default configurations for files not included in any CMakeLists.txt? If CMake Tools has sufficient information to provide the default
compilerPath
andcompilerArgs
(as it's already is for theWorkspaceBrowseConfiguration
), but based on a type of file, it could provide that as a configuration for that type of file.That might let us to remove the current fallback logic, which is currently hindered by the existence of only a single
compilerPath
andcompilerArgs
. More information on that can be found here:microsoft/vscode-cpptools-api#42
microsoft/vscode-cpptools#9266
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: