ocaml: Pass environment to language server (#13834)

Stanislav Alekseev created

Fixed the environment not being passed to ocaml lsp causing it to not
work with direnv based installs

Release Notes:

- N/A

Change summary

extensions/ocaml/src/ocaml.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

extensions/ocaml/src/ocaml.rs 🔗

@@ -26,7 +26,7 @@ impl zed::Extension for OcamlExtension {
         Ok(zed::Command {
             command: path,
             args: Vec::new(),
-            env: Default::default(),
+            env: worktree.shell_env(),
         })
     }