-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.quick fix
Milestone
Description
Type: LanguageService
Describe the bug
- OS and Version: Microsoft Windows [Version 10.0.18363.752]
- VS Code Version: 1.44.1
- C/C++ Extension Version: 2.27.0
When I want to use the env section in c_cpp_properties, I get yellow squiggles under the paths at the default_forcedInclude saying "Path is not a directory". Although this is true, it is also completely irrelevant. The forcedInclude is ment to be a file (at least, in my case it is).
Steps to reproduce
Here is my c_cpp_properties.json:
{
"env": {
"default_includePath": [
"${workspaceFolder}/some_path",
"${workspaceFolder}/some_other_path"
],
"default_defines": [
"some_defines",
"some_other_defines"
],
"default_defines2": [
"some_more_defines",
"some_more_other_defines"
],
"default_forcedInclude": [
"${workspaceFolder}/some_path/some_file.h",
"${workspaceFolder}/some_path/some_file.c"
],
"default_browsepath": [
"${workspaceFolder}/some_more_path",
"${workspaceFolder}/some_more_other_path"
]
},
"configurations": [
{
"name": "Debug",
"includePath": [ "${default_includePath}" ],
"defines": [
"${default_defines}",
"${default_defines2}",
"_DEBUG"
],
"intelliSenseMode": "msvc-x64",
"cStandard": "c89",
"forcedInclude": [ "${default_forcedInclude}" ],
"browse": {
"path": [ "${default_browsepath}" ],
"limitSymbolsToIncludedHeaders": true
}
}
],
"version": 4
}
Expected behavior
I did not expect it to show a warning and yellow squiggles.
Logs
Insert logs here.
Screenshots
Additional context
Metadata
Metadata
Assignees
Labels
Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.quick fix
