|
785 | 785 | { |
786 | 786 | "command": "ocaml.switch-impl-intf", |
787 | 787 | "key": "Alt+O", |
788 | | - "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 788 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || 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": "editorTextFocus && (editorLangId == ocaml || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 796 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.mlx || 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": "editorTextFocus && (editorLangId == ocaml || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 804 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.mlx || 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": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 812 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason)" |
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": "editorTextFocus && (editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 820 | + "when": "editorTextFocus && (editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason)" |
821 | 821 | }, |
822 | 822 | { |
823 | 823 | "command": "ocaml.evaluate-selection", |
824 | 824 | "key": "Shift+Enter", |
825 | | - "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 825 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason)" |
826 | 826 | }, |
827 | 827 | { |
828 | 828 | "command": "ocaml.next-hole", |
829 | 829 | "key": "Alt+Y", |
830 | | - "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.ocamllex || editorLangId == ocaml.mlx)" |
| 830 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.ocamllex || editorLangId == ocaml.mlx || editorLangId == reason)" |
831 | 831 | }, |
832 | 832 | { |
833 | 833 | "command": "ocaml.prev-hole", |
834 | 834 | "key": "Shift+Alt+Y", |
835 | | - "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.ocamllex || editorLangId == ocaml.mlx)" |
| 835 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.ocamllex || editorLangId == ocaml.mlx || 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": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 850 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason)" |
851 | 851 | }, |
852 | 852 | { |
853 | 853 | "command": "ocaml.type-selection", |
|
1039 | 1039 | "configuration": "./languages/menhir.json" |
1040 | 1040 | }, |
1041 | 1041 | { |
1042 | | - "id": "atd", |
| 1042 | + "id": "ocaml.mlx", |
1043 | 1043 | "aliases": [ |
1044 | | - "ATD", |
1045 | | - "atd" |
| 1044 | + "OCaml.mlx", |
| 1045 | + "ocaml.mlx" |
1046 | 1046 | ], |
1047 | 1047 | "extensions": [ |
1048 | | - ".atd" |
| 1048 | + ".mlx" |
1049 | 1049 | ], |
1050 | 1050 | "configuration": "./languages/ocaml.json" |
1051 | 1051 | }, |
|
1061 | 1061 | ], |
1062 | 1062 | "configuration": "./languages/reason.json" |
1063 | 1063 | }, |
| 1064 | + { |
| 1065 | + "id": "atd", |
| 1066 | + "aliases": [ |
| 1067 | + "ATD", |
| 1068 | + "atd" |
| 1069 | + ], |
| 1070 | + "extensions": [ |
| 1071 | + ".atd" |
| 1072 | + ], |
| 1073 | + "configuration": "./languages/ocaml.json" |
| 1074 | + }, |
1064 | 1075 | { |
1065 | 1076 | "id": "cram", |
1066 | 1077 | "aliases": [ |
|
1071 | 1082 | "extensions": [ |
1072 | 1083 | ".t" |
1073 | 1084 | ] |
1074 | | - }, |
1075 | | - { |
1076 | | - "id": "ocaml.mlx", |
1077 | | - "aliases": [ |
1078 | | - "OCaml.mlx", |
1079 | | - "ocaml.mlx" |
1080 | | - ], |
1081 | | - "extensions": [ |
1082 | | - ".mlx" |
1083 | | - ], |
1084 | | - "configuration": "./languages/ocaml.json" |
1085 | 1085 | } |
1086 | 1086 | ], |
1087 | 1087 | "menus": { |
1088 | 1088 | "editor/context": [ |
1089 | 1089 | { |
1090 | 1090 | "command": "ocaml.evaluate-selection", |
1091 | 1091 | "group": "OCaml", |
1092 | | - "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 1092 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason)" |
1093 | 1093 | }, |
1094 | 1094 | { |
1095 | 1095 | "command": "ocaml.reveal-ast-node", |
|
1104 | 1104 | }, |
1105 | 1105 | { |
1106 | 1106 | "command": "ocaml.next-hole", |
1107 | | - "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 1107 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason)" |
1108 | 1108 | }, |
1109 | 1109 | { |
1110 | 1110 | "command": "ocaml.prev-hole", |
1111 | | - "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)" |
| 1111 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason)" |
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 || editorLangId == ocaml.mlx" |
| 1171 | + "when": "editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason" |
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": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == reason || editorLangId == ocaml.mlx)", |
| 1182 | + "when": "editorTextFocus && (editorLangId == ocaml || editorLangId == ocaml.interface || editorLangId == ocaml.mlx || editorLangId == reason)", |
1183 | 1183 | "group": "navigation" |
1184 | 1184 | } |
1185 | 1185 | ], |
|
1341 | 1341 | "workspaceContains:**/*.mli", |
1342 | 1342 | "workspaceContains:**/*.mll", |
1343 | 1343 | "workspaceContains:**/*.mly", |
| 1344 | + "workspaceContains:**/*.mlx", |
1344 | 1345 | "workspaceContains:**/*.re", |
1345 | 1346 | "workspaceContains:**/*.rei", |
1346 | 1347 | "onDebugResolve:ocaml.earlybird" |
|
0 commit comments