可否配置 .sumi
或者 extensions
的磁盘位置?
#2568
-
基于 https://github.com/opensumi/ide-startup 项目,在 Windows 环境 build 完运行
手动把工程里下载的 extensions 目录拷贝到 .sumi 目录后,插件、图标主题以及代码高亮才可正常工作。是否可以配置 .sumi 或者 extensions 的路径? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
https://github.com/opensumi/ide-startup/blob/main/src/browser/render-app.ts#L23 renderApp 应该可以配置 extensionDir, storageDirName, extensionStorageDirName 来完成自定义目录存储 |
Beta Was this translation helpful? Give feedback.
-
@fankangsong 也可以看一下这个文档,是支持配置插件目录(extensionDir)的,https://opensumi.com/zh/docs/integrate/universal-integrate-case/custom-config#%E9%9B%86%E6%88%90%E9%85%8D%E7%BD%AE |
Beta Was this translation helpful? Give feedback.
-
marketplace.extensionDir 可以定义扩展目录,谢谢。 |
Beta Was this translation helpful? Give feedback.
https://github.com/opensumi/ide-startup/blob/main/src/browser/render-app.ts#L23 renderApp 应该可以配置 extensionDir, storageDirName, extensionStorageDirName 来完成自定义目录存储
可以看下 TS 定义:https://github.com/opensumi/core/blob/main/packages/core-browser/src/react-providers/config-provider.tsx#L53