|
2848 | 2848 | "command": "C_Cpp.AddDebugConfiguration", |
2849 | 2849 | "title": "%c_cpp.command.AddDebugConfiguration.title%", |
2850 | 2850 | "category": "C/C++", |
2851 | | - "icon": "$(debug-configure)" |
| 2851 | + "icon": "$(debug-configure)" |
2852 | 2852 | } |
2853 | 2853 | ], |
2854 | 2854 | "keybindings": [ |
|
3989 | 3989 | ], |
3990 | 3990 | "editor/context": [ |
3991 | 3991 | { |
3992 | | - "when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'", |
3993 | 3992 | "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'", |
3994 | 3994 | "group": "custom1@1" |
3995 | 3995 | }, |
3996 | 3996 | { |
3997 | | - "when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'", |
3998 | 3997 | "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'", |
3999 | 3999 | "group": "custom1@2" |
4000 | 4000 | }, |
4001 | 4001 | { |
4002 | | - "when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'", |
4003 | 4002 | "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'", |
4004 | 4004 | "group": "custom1@3" |
4005 | 4005 | }, |
4006 | 4006 | { |
4007 | 4007 | "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'", |
4009 | 4009 | "group": "custom2@1" |
4010 | 4010 | }, |
4011 | 4011 | { |
4012 | 4012 | "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'", |
4014 | 4014 | "group": "custom2@2" |
4015 | 4015 | }, |
4016 | 4016 | { |
|
0 commit comments