Skip to content

Commit

Permalink
Adding the defaultFolder to the configuration.includePath (#5989)
Browse files Browse the repository at this point in the history
* update description
* change UI description (match with Docs description)
  • Loading branch information
elahehrashedi authored Aug 21, 2020
1 parent 1852c50 commit 4ab525f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Extension/c_cpp_properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"type": "string"
},
"includePath": {
"description": "A list of paths for the IntelliSense engine to use while searching for included headers. Searching on these paths is not recursive.",
"description": "A list of paths for the IntelliSense engine to use while searching for included headers. Searching on these paths is not recursive. Specify '**' to indicate recursive search. For example, '${workspaceFolder}/**' will search through all subdirectories while '${workspaceFolder}' will not.",
"type": "array",
"items": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/configurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export class CppProperties {
if (isUnset(settings.defaultIncludePath)) {
configuration.includePath = [rootFolder].concat(this.vcpkgIncludes);
} else {
configuration.includePath = [rootFolder].concat(this.vcpkgIncludes).concat([defaultFolder]);
configuration.includePath = [defaultFolder];
}
// browse.path is not set by default anymore. When it is not set, the includePath will be used instead.
if (isUnset(settings.defaultDefines)) {
Expand Down
2 changes: 1 addition & 1 deletion Extension/ui/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@
<div class="section">
<div class="section-title" data-loc-id="include.path">Include path</div>
<div class="section-text">
<span data-loc-id="include.path.description">An include path is a folder that contains header files (such as <code>#include "myHeaderFile.h"</code>) that are included in a source file. Specify a list paths for the IntelliSense engine to use while searching for included header files. If a path ends with <code>/**</code> the IntelliSense engine will do a recursive search for header files starting from that directory. If on Windows with Visual Studio installed, or if a compiler is specified in the <code>compilerPath</code> setting, it is not necessary to list the system include paths in this list.</span>
<span data-loc-id="include.path.description">An include path is a folder that contains header files (such as <code>#include "myHeaderFile.h"</code>) that are included in a source file. Specify a list paths for the IntelliSense engine to use while searching for included header files. Searching on these paths is not recursive. Specify <code>**</code> to indicate recursive search. For example, <code>${workspaceFolder}/**</code> will search through all subdirectories while <code>${workspaceFolder}</code> will not. If on Windows with Visual Studio installed, or if a compiler is specified in the <code>compilerPath</code> setting, it is not necessary to list the system include paths in this list.</span>
</div>
<div>
<div class="section-note" data-loc-id="one.include.path.per.line">One include path per line.</div>
Expand Down

0 comments on commit 4ab525f

Please sign in to comment.