Skip to content

Commit

Permalink
Merge pull request #6 from jonludlam/fix-static-example
Browse files Browse the repository at this point in the history
Fix generation of static cmis to match protocol
  • Loading branch information
voodoos committed May 31, 2023
2 parents f15bd02 + 42032e0 commit dae7fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/dynamic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Merlin =
"Unix";
"UnixLabels";
] in
let dcs_url = "/stdlib/" in
let dcs_url = "stdlib/" in
let dcs_file_prefixes = ["stdlib__"] in
{ Protocol.static_cmis = [];
dynamic_cmis = Some {
Expand Down
2 changes: 1 addition & 1 deletion src/worker/static/gen_static.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let () =
let dir = Unix.opendir stdlib in
iter_cmi ~f:(fun file ->
let fullpath = Filename.concat stdlib file in
let module_name = Filename.basename file |> String.capitalize_ascii in
let module_name = Filename.basename file |> String.capitalize_ascii |> Filename.remove_extension in
Printf.fprintf out "{sc_name=%S; sc_content=[%%blob %S]};" module_name fullpath) dir;
Printf.fprintf out "]\n";

Expand Down

0 comments on commit dae7fe3

Please sign in to comment.