Skip to content

Commit 982314d

Browse files
Show or hide commands based on C_Cpp.intelliSenseEngine value (#9469)
1 parent 2dc0a86 commit 982314d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Extension/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
### Bug Fixes
88
* Fix doxygen comments not being displayed for multiple adjacent `@brief` or `@return` tags. [#9316](https://github.com/microsoft/vscode-cpptools/issues/9316)
99
* Fix crash if clang-tidy returns a replacement with an empty FilePath. [#9437](https://github.com/microsoft/vscode-cpptools/issues/9437)
10+
* Fix hiding IntelliSense dependent commands when `C_Cpp.intelliSenseEngine` is `"Disabled"`. [#9451](https://github.com/microsoft/vscode-cpptools/issues/9451)
1011
* Fix skipping the compiler argument after `-c`. [#9453](https://github.com/microsoft/vscode-cpptools/issues/9453)
1112
* Fix `-std:c++20` not being handled with cl.exe. [#9458](https://github.com/microsoft/vscode-cpptools/issues/9458)
1213

Extension/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2848,7 +2848,7 @@
28482848
"command": "C_Cpp.AddDebugConfiguration",
28492849
"title": "%c_cpp.command.AddDebugConfiguration.title%",
28502850
"category": "C/C++",
2851-
"icon": "$(debug-configure)"
2851+
"icon": "$(debug-configure)"
28522852
}
28532853
],
28542854
"keybindings": [
@@ -3989,28 +3989,28 @@
39893989
],
39903990
"editor/context": [
39913991
{
3992-
"when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'",
39933992
"command": "C_Cpp.SwitchHeaderSource",
3993+
"when": "config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'",
39943994
"group": "custom1@1"
39953995
},
39963996
{
3997-
"when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'",
39983997
"command": "workbench.action.gotoSymbol",
3998+
"when": "config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'",
39993999
"group": "custom1@2"
40004000
},
40014001
{
4002-
"when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'",
40034002
"command": "workbench.action.showAllSymbols",
4003+
"when": "config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'",
40044004
"group": "custom1@3"
40054005
},
40064006
{
40074007
"command": "C_Cpp.RunCodeAnalysisOnActiveFile",
4008-
"when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'",
4008+
"when": "config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cuda-cpp'",
40094009
"group": "custom2@1"
40104010
},
40114011
{
40124012
"command": "C_Cpp.RestartIntelliSenseForFile",
4013-
"when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'",
4013+
"when": "config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cuda-cpp'",
40144014
"group": "custom2@2"
40154015
},
40164016
{

0 commit comments

Comments
 (0)