Commit 233cb7bb authored by Jonathan Maw's avatar Jonathan Maw
Browse files

_stream.py: Opened workspaces store the project that opened them

parent f75f6706
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ from ._exceptions import StreamError, ImplError, BstError, set_last_task_error
from ._message import Message, MessageType
from ._scheduler import Scheduler, SchedStatus, TrackQueue, FetchQueue, BuildQueue, PullQueue, PushQueue
from ._pipeline import Pipeline, PipelineSelection
from ._workspaces import WorkspaceLocal
from . import utils, _yaml, _site
from . import Scope, Consistency

@@ -516,6 +517,10 @@ class Stream():
            with target.timed_activity("Staging sources to {}".format(directory)):
                target._open_workspace()

        project = self._context.get_toplevel_project()
        workspace_local = WorkspaceLocal.create(directory, project.directory, target._get_full_name())
        workspace_local.write()

        workspaces.save_config()
        self._message(MessageType.INFO, "Saved workspace configuration")