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

Bucket code folding states by project in state.json instead of dumping every thing into one bucket. #10869

@abose

Description

@abose

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions