Replies: 3 comments 2 replies
-
@hnhhzy 需要你自行实现这种逻辑,可以在判断到后缀文件打开时,去调用面板 API 展开侧边栏,参考案例 https://github.com/opensumi/opensumi-module-samples/blob/main/modules/toggle-panel/browser/toggle-panel.contribution.ts |
Beta Was this translation helpful? Give feedback.
0 replies
-
另外,新出的这个app-desktop和ide-electron有啥区别吗?我看结构好像不太一样,app-desktop有一个base部分 |
Beta Was this translation helpful? Give feedback.
1 reply
-
有创建一个右边栏的完整demo吗? 并且可以传递参数的 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
编辑器的话,我通过实现ClientAppContribution, BrowserEditorContribution, CommandContribution参考了use-antd代码实现了后缀关联编辑器。
看到新增的app-desktop实现了侧边栏。
可以将他们两关联起来吗?特定的后缀才会打开这个侧边栏。其他的情况下是不显示的,还是这个侧边栏需要在editor里自己实现?
Beta Was this translation helpful? Give feedback.
All reactions