How to customized workspace preference and folder preference

hi! I want to add custom preference settings context to workspace preference and folder preference, but I don’t know to make it ,could you give me some suggestion.

@connor thank you for the discussion!

Given you have a custom theia extension, you can register your custom schema and bind it to your application. You can use one of many examples present in the repository for how it is done, for example:

Defining the schema and how to bind:

Actually binding the preference (in the module):

As part of the preference schema you should be able to control your scope for your use-case:

If you’d like an overview on everything mentioned, you can also follow the documentation provided on the website for preferences.

Oh! I got it , thank you very much! :pray:

1 Like