Commit b237c81
committed
fix:
Fixes #13
VScode has inconsistencies between it's API and the language configuration JSON files. In the onEnter rules, JSON files have the property `action.indent` whereas the API has `action.indentAction`. When merging the auto-found language config files and the extension's onEnter comment rules, VScode couldn't handle the mixed formats properly, causing the brace malfunction in #13.
Fixed by normalizing the property to the API format and converting it's values.
- Added new `normalizeOnEnterRules` to normalize onEnter rules to use the API format, and added the method call at the end of the `setLanguageConfiguration` method.onEnter rules inconsistencies between API and JSON properties.1 parent fadcff5 commit b237c81
1 file changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
859 | 864 | | |
860 | 865 | | |
861 | 866 | | |
| |||
1010 | 1015 | | |
1011 | 1016 | | |
1012 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1013 | 1056 | | |
0 commit comments