(
tabId: string,
group: IEditorGroup
diff --git a/src/workbench/editor/editor.tsx b/src/workbench/editor/editor.tsx
index 2a0e3e423..99ca9932d 100644
--- a/src/workbench/editor/editor.tsx
+++ b/src/workbench/editor/editor.tsx
@@ -13,6 +13,7 @@ export function Editor(props: IEditor & IEditorController) {
const {
groups = [],
current,
+ entry = ,
onClickContextMenu,
onCloseTab,
onMoveTab,
@@ -73,7 +74,7 @@ export function Editor(props: IEditor & IEditorController) {
return (
- {current ? renderGroups() : }
+ {current ? renderGroups() : entry}
);
}
diff --git a/stories/extensions/test/entry.scss b/stories/extensions/test/entry.scss
new file mode 100644
index 000000000..e2086b17e
--- /dev/null
+++ b/stories/extensions/test/entry.scss
@@ -0,0 +1,35 @@
+.entry {
+ align-items: center;
+ background-color: var(--panel-background);
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ text-align: center;
+ width: 100%;
+
+ * {
+ font-family: monospace;
+ }
+
+ dl {
+ border-collapse: separate;
+ border-spacing: 13px 17px;
+ color: hsla(0, 0%, 100%, 0.6);
+ cursor: default;
+ display: table-row;
+ font-size: 13px;
+ margin: 0;
+
+ dt {
+ display: table-cell;
+ letter-spacing: 0.04em;
+ text-align: right;
+ }
+
+ dd {
+ display: table-cell;
+ margin-left: 12px;
+ text-align: left;
+ }
+ }
+}
diff --git a/stories/extensions/test/entry.tsx b/stories/extensions/test/entry.tsx
new file mode 100644
index 000000000..85bacea08
--- /dev/null
+++ b/stories/extensions/test/entry.tsx
@@ -0,0 +1,26 @@
+import React from 'react';
+import './entry.scss';
+
+export const Entry = () => {
+ return (
+
+
molecule
+
+ - 显示所有命令
+ - command + b
+
+
+ - 打开文件或文件夹
+ - command + b
+
+
+ - 打开最近文件
+ - command + b
+
+
+ - 新的无标题文件
+ - command + b
+
+
+ );
+};
diff --git a/stories/extensions/test/index.tsx b/stories/extensions/test/index.tsx
index dd9fd2d93..01f32f0a2 100644
--- a/stories/extensions/test/index.tsx
+++ b/stories/extensions/test/index.tsx
@@ -9,6 +9,7 @@ import {
import { IExtension } from 'mo/model';
import TestPane from './testPane';
+import { Entry } from './entry';
export const ExtendTestPane: IExtension = {
activate() {
@@ -30,6 +31,8 @@ export const ExtendTestPane: IExtension = {
molecule.activityBar.addBar(newItem);
molecule.sidebar.addPane(testSidePane);
+ molecule.editor.setEntry();
+
molecule.settings.onChangeConfiguration(async (value) => {
console.log('onChangeConfiguration:', value);
molecule.settings.update(value);