Skip to content

Commit 038cfca

Browse files
authored
Add VSCode configs for better out-of-box LSP support (#16920)
Prevents errors generated due to unresolved headers in VSCode ## Validation Steps Performed - Errors messages are removed. - Headers are resolved properly.
1 parent 5b8e731 commit 038cfca

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.vscode/settings.json

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
11
{
22
"C_Cpp.default.browse.databaseFilename": "${workspaceFolder}\\.vscode\\.BROWSE.VC.DB",
3+
"C_Cpp.default.browse.limitSymbolsToIncludedHeaders": true,
34
"C_Cpp.default.browse.path": [
45
"${workspaceFolder}"
56
],
7+
"C_Cpp.default.cppStandard": "c++20",
8+
"C_Cpp.default.cStandard": "c17",
9+
"C_Cpp.default.defines": [
10+
"_DEBUG",
11+
"_UNICODE",
12+
"BUILD_ONECORE_INTERACTIVITY",
13+
"DBG",
14+
"NT_SUCCESS",
15+
"UNICODE",
16+
"UNIT_TESTING",
17+
"INLINE_TEST_METHOD_MARKUP",
18+
],
19+
"C_Cpp.default.includePath": [
20+
"${workspaceFolder}/**",
21+
"${workspaceFolder}/**/Generated Files",
22+
"${workspaceFolder}/**/inc",
23+
"${workspaceFolder}/**/include",
24+
"${workspaceFolder}/**/Include"
25+
],
626
"C_Cpp.loggingLevel": "None",
727
"files.associations": {
828
"xstring": "cpp",
@@ -98,14 +118,13 @@
98118
"coroutine": "cpp",
99119
"format": "cpp",
100120
"forward_list": "cpp",
101-
"latch": "cpp"
121+
"latch": "cpp",
122+
"gsl_assert": "cpp"
102123
},
103124
"files.exclude": {
104125
"**/bin/**": true,
126+
"**/Generated Files/**": true,
105127
"**/obj/**": true,
106-
"**/Generated Files/**": true
128+
"**/packages/**": true,
107129
},
108-
"search.exclude": {
109-
"**/packages/**": true
110-
}
111-
}
130+
}

0 commit comments

Comments
 (0)