Skip to content

WIP: Support multiple projects opening the same workspace

Jonathan Maw requested to merge jonathan/workspace-fragment-multi-project into master

Description

Extends the workspace opening, closing, and resetting logic to allow multiple projects to open a workspace in the same directory (if "--force" is passed on the command-line).

At present, there is only scope to assume that the first project that opened the workspace is the one to be used for running commands on the project and guessing the element.

If the first project is removed, the next one to open the workspace will be the default, etc.

Changes yet to be implemented:

  • bst workspace close from the workspace, without an element specified, should give an interactive warning, then close this workspace for every project that has opened it.
  • Tests covering attempting to close an already-opened and already-closed workspace.
  • Tests covering multiple projects and multiple elements within the same project opening the same workspace (i.e. the systemd-udev problem)
  • Documentation and examples of this feature in use
  • A NEWS item for these changes

This merge request, when approved, will close: #222 (closed)


Edited by Jonathan Maw

Merge request reports