Skip to content
Snippets Groups Projects
Commit c582a44f authored by Jonathan Maw's avatar Jonathan Maw
Browse files

_workspaces.py: Add WorkspaceProject and WorkspaceProjectCache objects

WorkspaceProject contains all the information needed to refer back to a
project from its workspace (currently this is the project path and the
element used to create this workspace)

This is stored within a WorkspaceProjectCache object, which keeps
WorkspaceProjects around so they don't need to be loaded from disk
repeatedly.

Workspaces has been extended to contain the WorkspaceProjectCache, and
will use it when opening and closing workspaces.

Context has been extended to contain a WorkspaceProjectCache, as there
are times when we want to use it before a Workspaces can be initialised
(looking up a WorkspaceProject to find the directory that the project is
in)

This is a part of #222
parent e00d6eb4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment