Skip to content

Commit 04e3d8f

Browse files
committed
Fis issue where module paths in -open bsc-flags such as "-open ReScriptJs.Js" were not recognized
Fixes #607
1 parent d615756 commit 04e3d8f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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 where module paths in `-open` `bsc-flags` such as "-open ReScriptJs.Js" were not recognized https://github.com/rescript-lang/rescript-vscode/issues/607
18+
1519
## v1.8.1
1620

1721
#### :rocket: New Feature

analysis/src/Packages.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ let newBsPackage ~rootPath =
6868
| Some s -> (
6969
let parts = String.split_on_char ' ' s in
7070
match parts with
71-
| "-open" :: name :: _ -> name :: opens
71+
| "-open" :: name :: _ ->
72+
let names = name |> String.split_on_char '.' in
73+
names @ opens
7274
| _ -> opens))
7375
[] l
7476
| None -> []

0 commit comments

Comments
 (0)