Skip to content

Commit

Permalink
Pass the workspace env to context creation
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Jul 20, 2018
1 parent 40ea41a commit 7829611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ let setup ?(log=Log.no_log)

Fiber.parallel_map workspace.contexts ~f:(fun ctx_def ->
let name = Workspace.Context.name ctx_def in
Context.create ctx_def ~env ~merlin:(workspace.merlin_context = Some name))
Context.create ?workspace_env:workspace.env
ctx_def ~env ~merlin:(workspace.merlin_context = Some name))
>>= fun contexts ->
let contexts = List.concat contexts in
List.iter contexts ~f:(fun (ctx : Context.t) ->
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox-tests/test-cases/workspaces/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ Workspaces also allow you to set the env for a context:
Entering directory 'workspace-env'
(
(flags (-w -40 -machin))
(ocamlc_flags (-g))
(ocamlc_flags (-g -verbose))
(ocamlopt_flags (-g))
)

0 comments on commit 7829611

Please sign in to comment.