Skip to content

Commit 2c2552e

Browse files
authored
Fix issue with ordering of module opened via -open (#842)
* fix issue with ordering of module opened via -open in bsconfig/rescript.json * changelog
1 parent 56a0025 commit 2c2552e

File tree

4 files changed

+57
-53
lines changed

4 files changed

+57
-53
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
1313
## master
1414

15+
#### :bug: Bug Fix
16+
17+
- Fix issue `open` on submodules exposed via `-open` in bsconfig.json/rescript.json, that would cause the content of those `open` modules to not actually appear in autocomplete. https://github.com/rescript-lang/rescript-vscode/pull/842
18+
1519
## 1.22.0
1620

1721
#### :nail_care: Polish

analysis/src/CompletionBackEnd.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ let getOpens ~debug ~rawOpens ~package ~env =
11521152
if name = "PervasivesU" then "Pervasives" else name)
11531153
|> pathToString)));
11541154
let resolvedOpens =
1155-
resolveOpens ~env (List.rev (packageOpens @ rawOpens)) ~package
1155+
resolveOpens ~env (List.rev (rawOpens @ packageOpens)) ~package
11561156
in
11571157
if debug && resolvedOpens <> [] then
11581158
Printf.printf "%s\n"

0 commit comments

Comments
 (0)