Commit 0e60d61
committed
Fix(clearSquiggle failing on some cases)
In some cases the clear function failed because the stored start and
stop position of underline changes while not being updated in editor.
Now we select all document and apply default textFormat to clear the
underlines. It is much faster and better. squiggle Function has been
improved too, it now handles all (Valid) ranges that LSP will send to
highlight.1 parent 8c0d19e commit 0e60d61
File tree
3 files changed
+21
-52
lines changed- example/src
- include/internal
- src/internal
3 files changed
+21
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
| 181 | + | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 137 | | |
145 | 138 | | |
146 | 139 | | |
| |||
349 | 342 | | |
350 | 343 | | |
351 | 344 | | |
352 | | - | |
353 | | - | |
354 | 345 | | |
355 | 346 | | |
356 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
| 855 | + | |
855 | 856 | | |
856 | 857 | | |
857 | 858 | | |
| |||
864 | 865 | | |
865 | 866 | | |
866 | 867 | | |
867 | | - | |
868 | 868 | | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
| 869 | + | |
| 870 | + | |
875 | 871 | | |
876 | | - | |
| 872 | + | |
| 873 | + | |
877 | 874 | | |
878 | 875 | | |
879 | 876 | | |
880 | 877 | | |
881 | | - | |
882 | | - | |
883 | 878 | | |
884 | 879 | | |
885 | 880 | | |
| |||
918 | 913 | | |
919 | 914 | | |
920 | 915 | | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
| 916 | + | |
928 | 917 | | |
929 | | - | |
930 | | - | |
| 918 | + | |
931 | 919 | | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
937 | 923 | | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | 924 | | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | 925 | | |
950 | | - | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
951 | 929 | | |
952 | 930 | | |
953 | 931 | | |
| |||
0 commit comments