This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Description
rather than dumping folding state for all files together in one map, it might make sense to bucket it by project, like we do for other similar prefs like the scroll position & selection state of editors.
MainViewManager has an example of how to do that:
context = { location : { scope: "user",
layer: "project" } },
state = PreferencesManager.getViewState(PREFS_NAME, context);
and
context = { location : { scope: "user",
layer: "project",
layerID: projectRoot.fullPath } },
...
PreferencesManager.setViewState(PREFS_NAME, state, context);
Add a line note