🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@theia/preferences

Package Overview
Dependencies
Maintainers
12
Versions
3575
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theia/preferences

Theia - Preferences Extension

latest
Source
npmnpm
Version
1.73.1
Version published
Weekly downloads
11K
-8.43%
Maintainers
12
Weekly downloads
 
Created
Source

theia-ext-logo

ECLIPSE THEIA - PREFERENCES EXTENSION

Description

The @theia/preferences extension implements the preferences API defined in @theia/core, including the four preference providers:

  • Default Preference, which serves as default values of preferences,
  • User Preference for the user home directory, which has precedence over the default values,
  • Workspace Preference for the workspace, which has precedence over User Preference, and
  • Folder Preference for the root folder, which has precedence over the Workspace Preference

To set:

  • User Preferences: Create or edit a settings.json under the .theia folder located either in the user home.
  • Workspace Preference: If one folder is opened as the workspace, create or edit a settings.json under the root of the workspace. If a multi-root workspace is opened, create or edit the "settings" property in the workspace file.
  • Folder Preferences: Create or edit a settings.json under any of the root folders.

Example of a settings.json below:

{
    // Enable/Disable the line numbers in the monaco editor
 "editor.lineNumbers": "off",
    // Tab width in the editor
 "editor.tabSize": 4,
 "files.watcherExclude": "path/to/file"
}

Example of a workspace file below:

{
   "folders": [
      {
         "path": "file:///home/username/helloworld"
   },
   {
         "path": "file:///home/username/dev/byeworld"
      }
   ],
   "settings": {
      // Enable/Disable the line numbers in the monaco editor
   "editor.lineNumbers": "off",
      // Tab width in the editor
   "editor.tabSize": 4,
   }
}

Additional Information

  • API documentation for @theia/preferences
  • Theia - GitHub
  • Theia - Website

License

Trademark

"Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia

Theia - Preferences Extension

License

Keywords

theia-extension

FAQs

Package last updated on 01 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts