# \[Update\] Dune Package Management Support in VSCode

**URL:** <https://discuss.ocaml.org/t/update-dune-package-management-support-in-vscode/18523>\
**Category:** Ecosystem\
**Tags:** editor, vscode, dune\
**Created:** [September 10, 2026, 1:03pm UTC](https://discuss.ocaml.org/t/update-dune-package-management-support-in-vscode/18523 "2026-09-10T13:03:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PizieDust](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/piziedust/32/5269_2.png) [@PizieDust](https://discuss.ocaml.org/u/PizieDust)\
**Post date:** [September 10, 2026, 1:03pm UTC](https://discuss.ocaml.org/t/update-dune-package-management-support-in-vscode/18523/1 "2026-09-10T13:03:21Z")

</div>

We are happy to announce improvements to the OCaml VSCode Extension relating to Dune Package Management (DPM). This update includes several bug fixes and quality-of-life improvements.  
In this new update: to activate DPM as a sandbox:

- First, select “Dune Package Management” from the sandbox list.
- Then a list of dune binaries installed on your computer is displayed to you. Once you select a dune binary, DPM becomes activated for your project.

DPM initializes `ocaml-lsp-server` for you in the background once it is activated and the extension has helpful suggestions, such as asking you to “lock” your project if you haven’t enabled DPM yet. (Enabling DPM can be done either in the `dune-workspace` file, or by running `dune pkg lock`).  
Once both are done, things work nicely.  
_Notes:_

- _Other features supported by opam sandboxes such as listing installed dependencies, upgrading and uninstalling packages are not yet supported for DPM._
- _If you run dune in watch mode or you run a long-lasting dune command, then DPM on VSCode will not work reliably as the dune build directory will be locked until the currently running process terminates._

You can see more about the changes we have done on the [project board](https://github.com/users/PizieDust/projects/4/views/1).  
This work was achieved by a group of [Tarides](https://tarides.com) notably [Pixie Dust](https://github.com/PizieDust), [Timéo Arnouts](https://github.com/Tim-ats-d), [Ulysse Gerard](https://github.com/voodoos), [Sonja Heinze](https://github.com/pitag-ha), [Shon Feder](https://github.com/shonfeder), [Ali Caglayan](https://github.com/Alizter), and [Sudha Parimala](https://github.com/Sudha247).
