Skip to content

Commit e5263bd

Browse files
authored
Support universal dot completion in editor tooling (#7226)
* Port PR from rescript-vscode * Run all tests locally * Revert changes in CompletionBackEnd and TypeUtils * Revert CompletionFrontEnd.ml * Remove some unnecessary recs * Whoops * Add changelog entry
1 parent 32fa620 commit e5263bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2841
-761
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#### :house: Internal
1616

1717
- AST cleanup: use inline record for Pexp_fun. https://github.com/rescript-lang/rescript/pull/7213
18+
- Add support for "dot completion everywhere" (Ported from https://github.com/rescript-lang/rescript-vscode/pull/1054). https://github.com/rescript-lang/rescript/pull/7226
1819

1920
#### :nail_care: Polish
2021

Diff for: analysis/src/Codemod.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let transform ~path ~pos ~debug ~typ ~hint =
4141
if debug then print_endline "Found no result";
4242
exit 1
4343
| Some switchExpr ->
44-
printExpr ~range:(Xform.rangeOfLoc switchExpr.pexp_loc) switchExpr)
44+
printExpr ~range:(Loc.rangeOfLoc switchExpr.pexp_loc) switchExpr)
4545
| _ ->
4646
if debug then print_endline "Mismatch in expected structure";
4747
exit 1)

0 commit comments

Comments
 (0)