Module Samples
We officially provide a case repository for module expansion opensumi-module-samples. You can learn the following contents in the template repository:
| Sample | API & Documentation |
|---|---|
| Connection Sample | connection-between-browser-and-node |
| Custom Terminal Env Sample | Add custom Terminal enviroment variables |
| Use Buitin Components | - |
| Use Antd Components | Use OpenSumi antd theme |
| Welcome page | Create your welcome page |
| Editor Title Actions | Create Editor Title Actions |
| Use OutputChannel | Logging message on Output panel |
| Add Welcome Content | How to add new welcome content |
| i18n in modules | How to custom i18n text |
| Toggle Panel or Sidebar | Toggle Panel or Sidebar |
| Custom Extension Marketplace entrypoint | Custom Extension Marketplace entrypoint |
| Custom Layout | Custom Layout View |
| File Opened With Custom Component | - |
| Basic TreeView | - |
| Modal API | How to use IMessageService/IDialogService/IProcessService |
| Use Custom Menu ID | - |
| Add Toolbar Menu | - |
| Custom Editor Empty Component | Custom Editor Empty Component |
| Add Custom View | - |
| Custom ContextMenu Or Menubar Menu | Custom Menu |
| Use Buitin Components | - |
| Use Buitin Services | - |
| Use Buitin Events | - |
| Use Monaco in Custom Editor Components | - |
The content of the module repository is also being iteratively updated, and developers are welcome to contribute your own use cases.