|
785 | 785 | { |
786 | 786 | "command": "ocaml.switch-impl-intf", |
787 | 787 | "key": "Alt+O", |
788 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
| 788 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
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": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == reason" |
| 796 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == reason || editorLangId == ocaml.mlx)" |
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": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == reason" |
| 804 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == reason || editorLangId == ocaml.mlx)" |
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": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
| 812 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
813 | 813 | }, |
814 | 814 | { |
815 | 815 | "command": "editor.action.codeAction", |
816 | 816 | "key": "Alt+P", |
817 | 817 | "args": { |
818 | 818 | "kind": "inferred_intf" |
819 | 819 | }, |
820 | | - "when": "editorLangId == ocaml.interface || editorLangId == reason" |
| 820 | + "when": "editorTextFocus && (editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
821 | 821 | }, |
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" |
| 825 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
826 | 826 | }, |
827 | 827 | { |
828 | 828 | "command": "ocaml.next-hole", |
829 | 829 | "key": "Alt+Y", |
830 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
| 830 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.ocamllex || editorLangId == ocaml.mlx)" |
831 | 831 | }, |
832 | 832 | { |
833 | 833 | "command": "ocaml.prev-hole", |
834 | 834 | "key": "Shift+Alt+Y", |
835 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
| 835 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.ocamllex || editorLangId == ocaml.mlx)" |
836 | 836 | }, |
837 | 837 | { |
838 | 838 | "command": "ocaml.reveal-ast-node", |
839 | 839 | "key": "Alt+N", |
840 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface" |
| 840 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx)" |
841 | 841 | }, |
842 | 842 | { |
843 | 843 | "command": "ocaml.switch-hover-mode", |
844 | 844 | "key": "Alt+H", |
845 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface" |
| 845 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx)" |
846 | 846 | }, |
847 | 847 | { |
848 | 848 | "command": "ocaml.search-by-type", |
849 | 849 | "key": "Alt+F", |
850 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
| 850 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
851 | 851 | }, |
852 | 852 | { |
853 | 853 | "command": "ocaml.type-selection", |
854 | 854 | "key": "Alt+T", |
855 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface" |
| 855 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx)" |
856 | 856 | }, |
857 | 857 | { |
858 | 858 | "command": "ocaml.type-previous-selection", |
859 | 859 | "key": "Shift+Alt+T", |
860 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface" |
| 860 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx)" |
861 | 861 | }, |
862 | 862 | { |
863 | 863 | "command": "ocaml.augment-selection-type-verbosity", |
864 | 864 | "key": "Alt+V", |
865 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface" |
| 865 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx)" |
866 | 866 | } |
867 | 867 | ], |
868 | 868 | "languages": [ |
|
1089 | 1089 | { |
1090 | 1090 | "command": "ocaml.evaluate-selection", |
1091 | 1091 | "group": "OCaml", |
1092 | | - "when": "editorTextFocus && editorLangId == ocaml || editorTextFocus && editorLangId == ocaml.interface || editorTextFocus && editorLangId == reason" |
| 1092 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
1093 | 1093 | }, |
1094 | 1094 | { |
1095 | 1095 | "command": "ocaml.reveal-ast-node", |
|
1104 | 1104 | }, |
1105 | 1105 | { |
1106 | 1106 | "command": "ocaml.next-hole", |
1107 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason" |
| 1107 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
1108 | 1108 | }, |
1109 | 1109 | { |
1110 | 1110 | "command": "ocaml.prev-hole", |
1111 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason" |
| 1111 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
1112 | 1112 | }, |
1113 | 1113 | { |
1114 | 1114 | "command": "ocaml.refresh-switches", |
|
1168 | 1168 | }, |
1169 | 1169 | { |
1170 | 1170 | "command": "ocaml.search-by-type", |
1171 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason" |
| 1171 | + "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx" |
1172 | 1172 | }, |
1173 | 1173 | { |
1174 | 1174 | "command": "ocaml.navigate-typed-holes", |
|
1179 | 1179 | { |
1180 | 1180 | "command": "ocaml.switch-impl-intf", |
1181 | 1181 | "key": "Alt+O", |
1182 | | - "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason", |
| 1182 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)", |
1183 | 1183 | "group": "navigation" |
1184 | 1184 | } |
1185 | 1185 | ], |
|
0 commit comments