Skip to content

Commit dc25df5

Browse files
AnthonyLeonardoGraciosetton
authored andcommitted
V809-025: Make our commands Ada-specific
By prefixing them by 'Ada: ' (like other extensions do) and by adding when clauses (i.e: filters) for their associated key shortcuts and the command palette.
1 parent 65afc28 commit dc25df5

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

integration/vscode/ada/package.json

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,20 +419,37 @@
419419
"commands": [
420420
{
421421
"command": "ada.otherFile",
422-
"title": "Go to other Ada file"
422+
"title": "Ada: Go to other file"
423423
},
424424
{
425425
"command": "ada.subprogramBox",
426-
"title": "Add subprogram box"
426+
"title": "Ada: Add subprogram box"
427427
}
428428
],
429429
"keybindings": [
430430
{
431431
"command": "ada.otherFile",
432-
"key": "Alt+O",
433-
"when": "editorLangId == 'ada' && editorTextFocus"
432+
"key": "alt+O",
433+
"when": "editorLangId == ada && editorTextFocus"
434+
},
435+
{
436+
"command": "ada.subprogramBox",
437+
"key": "alt+shift+B",
438+
"when": "editorLangId == ada && editorTextFocus"
434439
}
435-
]
440+
],
441+
"menus": {
442+
"commandPalette": [
443+
{
444+
"command": "ada.otherFile",
445+
"when": "editorLangId == ada"
446+
},
447+
{
448+
"command": "ada.subprogramBox",
449+
"when": "editorLangId == ada"
450+
}
451+
]
452+
}
436453
},
437454
"devDependencies": {
438455
"@types/glob": "7.2.0",

0 commit comments

Comments
 (0)