Commit 04781fe
committed
[ty] Fix range calculation in variable binding completions
Previously the cursor position was calculated using the length
of the typed token even if the cursor position was in the
middle of the token (f<CURSOR>oo).
I haven't managed to construct a test based on autocomplete suggestions
that would fail because of this but if you test the
`is_in_variable_binding` function directly it becomes clear
that the previous calculation was not entirely correct.1 parent 09d457a commit 04781fe
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1341 | 1341 | | |
1342 | 1342 | | |
1343 | 1343 | | |
1344 | | - | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
1345 | 1356 | | |
1346 | 1357 | | |
1347 | 1358 | | |
| |||
0 commit comments