Skip to content

Commit 96af0fa

Browse files
Add editor contextual menus for some Ada commands
We now have editor contextual menus for 'ada.otherFile' and 'ada.subprogramBox' commands. Adjust the filter for 'ada.subprogramBox': this command is only valid from editors opened for Ada files. Closes eng/ide/ada_language_server#1477
1 parent 5d0fef1 commit 96af0fa

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

integration/vscode/ada/package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,19 @@
858858
},
859859
{
860860
"command": "ada.subprogramBox",
861-
"when": "ADA_PROJECT_CONTEXT"
861+
"when": "editorLangId == ada"
862+
}
863+
],
864+
"editor/context": [
865+
{
866+
"command": "ada.otherFile",
867+
"group": "ada",
868+
"when": "editorLangId == ada"
869+
},
870+
{
871+
"command": "ada.subprogramBox",
872+
"group": "ada",
873+
"when": "editorLangId == ada"
862874
}
863875
],
864876
"editor/title/run": [

0 commit comments

Comments
 (0)