|
161 | 161 | "commands": [ |
162 | 162 | { |
163 | 163 | "command": "clangd.switchheadersource", |
164 | | - "title": "clangd: Switch between source/header" |
| 164 | + "category": "clangd", |
| 165 | + "title": "Switch Between Source/Header" |
165 | 166 | }, |
166 | 167 | { |
167 | 168 | "command": "clangd.install", |
168 | | - "title": "clangd: Download language server" |
| 169 | + "category": "clangd", |
| 170 | + "title": "Download language server" |
169 | 171 | }, |
170 | 172 | { |
171 | 173 | "command": "clangd.update", |
172 | | - "title": "clangd: Check for language server update" |
| 174 | + "category": "clangd", |
| 175 | + "title": "Check for language server update" |
173 | 176 | }, |
174 | 177 | { |
175 | 178 | "command": "clangd.activate", |
176 | | - "title": "clangd: Manually activate extension" |
| 179 | + "category": "clangd", |
| 180 | + "title": "Manually activate extension" |
177 | 181 | }, |
178 | 182 | { |
179 | 183 | "command": "clangd.restart", |
180 | | - "title": "clangd: Restart language server" |
| 184 | + "category": "clangd", |
| 185 | + "title": "Restart language server" |
181 | 186 | }, |
182 | 187 | { |
183 | 188 | "command": "clangd.typeHierarchy", |
| 189 | + "category": "clangd", |
184 | 190 | "title": "Open Type Hierarchy" |
185 | 191 | }, |
186 | 192 | { |
187 | 193 | "command": "clangd.typeHierarchy.viewParents", |
| 194 | + "category": "clangd", |
188 | 195 | "title": "Types: Show Base Classes", |
189 | 196 | "icon": "$(triangle-up)" |
190 | 197 | }, |
191 | 198 | { |
192 | 199 | "command": "clangd.typeHierarchy.viewChildren", |
| 200 | + "category": "clangd", |
193 | 201 | "title": "Types: Show Derived Classes", |
194 | 202 | "icon": "$(triangle-down)" |
195 | 203 | }, |
196 | 204 | { |
197 | 205 | "command": "clangd.typeHierarchy.close", |
| 206 | + "category": "clangd", |
198 | 207 | "title": "Close", |
199 | 208 | "icon": "$(panel-close)" |
200 | 209 | }, |
201 | 210 | { |
202 | 211 | "command": "clangd.memoryUsage", |
203 | | - "title": "clangd: Show memory usage", |
| 212 | + "category": "clangd", |
| 213 | + "title": "Show memory usage", |
204 | 214 | "enablement": "clangd.memoryUsage.supported", |
205 | 215 | "icon": "$(refresh)" |
206 | 216 | }, |
207 | 217 | { |
208 | 218 | "command": "clangd.memoryUsage.close", |
| 219 | + "category": "clangd", |
209 | 220 | "title": "Close", |
210 | 221 | "icon": "$(panel-close)" |
211 | 222 | }, |
212 | 223 | { |
213 | 224 | "command": "clangd.ast", |
| 225 | + "category": "clangd", |
214 | 226 | "title": "Show AST", |
215 | 227 | "enablement": "clangd.ast.supported", |
216 | 228 | "icon": "$(list-tree)" |
217 | 229 | }, |
218 | 230 | { |
219 | 231 | "command": "clangd.ast.close", |
| 232 | + "category": "clangd", |
220 | 233 | "title": "Close", |
221 | 234 | "icon": "$(panel-close)" |
222 | 235 | }, |
223 | 236 | { |
224 | 237 | "command": "clangd.projectConfig", |
225 | | - "title": "clangd: Open project configuration file", |
| 238 | + "category": "clangd", |
| 239 | + "title": "Open project configuration file", |
226 | 240 | "icon": "$(gear)" |
227 | 241 | }, |
228 | 242 | { |
229 | 243 | "command": "clangd.userConfig", |
230 | | - "title": "clangd: Open user configuration file", |
| 244 | + "category": "clangd", |
| 245 | + "title": "Open user configuration file", |
231 | 246 | "icon": "$(gear)" |
232 | 247 | } |
233 | 248 | ], |
|
254 | 269 | }, |
255 | 270 | { |
256 | 271 | "command": "clangd.switchheadersource", |
257 | | - "when": "resourceLangId == cpp", |
| 272 | + "when": "resourceLangId == c || resourceLangId == cpp || resourceLangId == cuda || resourceLangId == objective-c || resourceLangId == objective-cpp", |
258 | 273 | "group": "0_navigation@5" |
259 | 274 | }, |
260 | 275 | { |
|
0 commit comments