Opening the Extensions View
The Extensions view is your central hub for managing extensions.Open the Extensions panel
Use one of these methods:
- Press
Cmd+Shift+X(macOS) orCtrl+Shift+X(Linux/Windows) - Open the command palette and search for “Extensions”
- Click the Extensions icon in the sidebar
Installing Published Extensions
Published extensions are distributed through the Glass extension registry and are the easiest to install.From the Extensions View
Search for an extension
Use the search bar at the top to filter extensions by name, description, or functionality:
Review extension details
Each extension card shows:
- Extension name and version
- Description
- Author information
- Download count
- What it provides (themes, languages, etc.)
Installation Process
When you install an extension:- Download: Glass downloads the extension package (
.tar.gzarchive) from the registry - Verification: The package is verified for integrity and compatibility
- Extraction: The archive is extracted to
~/.config/glass/extensions/installed/<extension-id>/ - Loading: The extension is loaded and its resources are registered
- Activation: Extension features become immediately available
Filtering Extensions
You can filter extensions by what they provide:- Languages
- Themes
- Language Servers
View only extensions that add programming language support:
Installing Development Extensions
Development extensions allow you to install extensions from a local directory. This is useful for:- Testing extensions you’re developing
- Installing unpublished extensions
- Debugging extension issues
Installing from a Local Directory
Prepare your extension
Ensure your extension directory contains a valid
extension.toml manifest file:Select the extension directory
A file picker will open. Navigate to and select your extension’s root directory (the one containing
extension.toml)Dev extensions create a symbolic link to your source directory, so changes you make are reflected immediately (after rebuilding if necessary).
Development Extension Behavior
Overriding Published Extensions If you install a dev extension with the same ID as an already-installed published extension:- The dev extension takes precedence
- The published extension is automatically uninstalled
- This allows testing local changes against production extensions
- Open the Extensions view
- Find your dev extension (marked with
<>indicator) - Click the Rebuild button
Installing Specific Extension Versions
Sometimes you need to install a specific version of an extension (e.g., for compatibility or testing).Auto-Installing Extensions
Glass can automatically install certain extensions on first launch to provide essential language support out-of-the-box.Configuring Auto-Install
In your settings (settings.json):
- They’re not already installed
- Auto-install is enabled for that extension
- It’s the user’s first launch or the setting was just added
Disabling Auto-Install
To prevent an extension from auto-installing:Troubleshooting Installation Issues
Extension Won’t Install
Check compatibility: Ensure the extension supports your version of Glass. Look for:- Schema version compatibility
- WASM API version requirements
Extension Doesn’t Appear After Installation
Restart Glass: Some extensions may require a restart, though most load immediately. Check the extension index: Glass maintains an index at~/.config/glass/extensions/index.json. If this is corrupted, run:
Dev Extension Won’t Compile
Check Rust toolchain: Rust-based extensions require the Rust compiler. Ensure you have:extension.toml is valid:
Extension Security
Glass takes extension security seriously:- Sandboxing: Extensions run in WebAssembly sandboxes with limited system access
- Capabilities: Extensions must declare required capabilities in their manifest
- Verification: Published extensions are verified before installation
- Source available: All published extensions have public repositories
Next Steps
Managing Extensions
Learn how to update, configure, and uninstall extensions
Building Extensions
Create your own extensions for Glass