Is it possible to access preference values in the backend? #15349
-
Hi, I've added custom preference fields using the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Generally speaking, preferences are a frontend concept in Theia, so there is no built-in support to access them via the backend. Usually user actions are triggered from the frontend, so the typical pattern is that you retrieve the relevant preference values and hand them over to your backend calls as parameters. There are some alternatives if you really need them:
Still, the first approach is likely the easiest one. |
Beta Was this translation helpful? Give feedback.
Hi @rannp-toro-cloud,
Generally speaking, preferences are a frontend concept in Theia, so there is no built-in support to access them via the backend.
Usually user actions are triggered from the frontend, so the typical pattern is that you retrieve the relevant preference values and hand them over to your backend calls as parameters.
There are some alternatives if you really need them: