|
785 | 785 | { |
786 | 786 | "command": "ocaml.switch-impl-intf", |
787 | 787 | "key": "Alt+O", |
788 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.ocamllex || editorLangId == ocaml.menhir" |
| 788 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
789 | 789 | }, |
790 | 790 | { |
791 | 791 | "command": "editor.action.codeAction", |
792 | 792 | "key": "Alt+D", |
793 | 793 | "args": { |
794 | 794 | "kind": "destruct (enumerate cases)" |
795 | 795 | }, |
796 | | - "when": "editorLangId == ocaml || editorLangId == reason" |
| 796 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == reason" |
797 | 797 | }, |
798 | 798 | { |
799 | 799 | "command": "ocaml.construct", |
800 | 800 | "key": "Alt+C", |
801 | 801 | "args": { |
802 | 802 | "kind": "construct" |
803 | 803 | }, |
804 | | - "when": "editorLangId == ocaml || editorLangId == reason" |
| 804 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == reason" |
805 | 805 | }, |
806 | 806 | { |
807 | 807 | "command": "ocaml.jump", |
808 | 808 | "key": "Alt+J", |
809 | 809 | "args": { |
810 | 810 | "kind": "jump" |
811 | 811 | }, |
812 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason" |
| 812 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
813 | 813 | }, |
814 | 814 | { |
815 | 815 | "command": "editor.action.codeAction", |
|
822 | 822 | { |
823 | 823 | "command": "ocaml.evaluate-selection", |
824 | 824 | "key": "Shift+Enter", |
825 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason || editorTextFocus && editorLangId == ocaml.ocamllex || editorTextFocus && editorLangId == ocaml.menhir" |
| 825 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
826 | 826 | }, |
827 | 827 | { |
828 | 828 | "command": "ocaml.next-hole", |
829 | 829 | "key": "Alt+Y", |
830 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason" |
| 830 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
831 | 831 | }, |
832 | 832 | { |
833 | 833 | "command": "ocaml.prev-hole", |
834 | 834 | "key": "Shift+Alt+Y", |
835 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason" |
| 835 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
836 | 836 | }, |
837 | 837 | { |
838 | 838 | "command": "ocaml.reveal-ast-node", |
|
847 | 847 | { |
848 | 848 | "command": "ocaml.search-by-type", |
849 | 849 | "key": "Alt+F", |
850 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason" |
| 850 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
851 | 851 | }, |
852 | 852 | { |
853 | 853 | "command": "ocaml.type-selection", |
|
1089 | 1089 | { |
1090 | 1090 | "command": "ocaml.evaluate-selection", |
1091 | 1091 | "group": "OCaml", |
1092 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason || editorTextFocus && editorLangId == ocaml.ocamllex || editorTextFocus && editorLangId == ocaml.menhir" |
| 1092 | + "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
1093 | 1093 | }, |
1094 | 1094 | { |
1095 | 1095 | "command": "ocaml.reveal-ast-node", |
|
1179 | 1179 | { |
1180 | 1180 | "command": "ocaml.switch-impl-intf", |
1181 | 1181 | "key": "Alt+O", |
1182 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.ocamllex || editorLangId == ocaml.menhir", |
| 1182 | + "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason", |
1183 | 1183 | "group": "navigation" |
1184 | 1184 | } |
1185 | 1185 | ], |
|
0 commit comments