In a split-mode plugin, I have
- in the frontend: a FoldingBuilder, Does "<lang.foldingBuilder .../>" belong into frontend or backend module? - #4 by Nikita.Katkov
- in the backend: a folding options provider used by the folding builder via the settings service
- in the shared module: the settings service (a
PersistentStateComponent) to store the folding settings
AFAIK the folding, the FoldingBuilder should be in the frontend.
But how and where are the folding settings stored?
My implementation CodeFoldingOptionsProvider is currently in the backend, but I’m not sure if that’s correct. My thinking is that the settings should be stored with the project files on the backend.
The service (implementing PersistentStateComponent) is in the shared module to allow the backend to store the settings and the frontend to read them.
Is this a wrong approach or are the persistent settings somehow synced between backend and frontend?
If it’s wrong, do I have to add RPC-enabled services for all of the settings services? That would be a lot of work and complexity ![]()
I probably don’t understand the architecture yet.
Thank you!