new input verification of configurations.includePath fails to verify multiple paths in single env variable #3912
Labels
bug
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
Milestone
The example
c_cpp_properties.json
provided here reports the problemCannot find "<workspaceFolder>;<workspaceFolder>\include".
The issue is that the path array
configurations.includePath
contains the env variable${myDefaultIncludePath}
which again is a path array that gets flattened into a semi-colon separated path list. However, the input validation forconfigurations.includePath
wrongly expects a single path per entry, as can be seen here:vscode-cpptools/Extension/src/LanguageServer/configurations.ts
Lines 1012 to 1014 in 53107bc
The issue only concerns validation, since the actual processing of
cofigurations.includePaths
vscode-cpptools/Extension/src/LanguageServer/configurations.ts
Line 540 in 53107bc
resolveAndSplit
insideupdateConfiguration
vscode-cpptools/Extension/src/LanguageServer/configurations.ts
Lines 513 to 529 in 53107bc
The text was updated successfully, but these errors were encountered: