Skip to content

Commit 1363592

Browse files
committed
feat: only push item
1 parent 81002ab commit 1363592

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed
+5-23
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
1-
import { activityBar } from 'mo/index';
2-
3-
// import * as React from 'react';
4-
5-
// const BarB: React.FunctionComponent = () => {
6-
// return (<div>affefefe</div>);
7-
// };
1+
import { activityBar } from 'mo';
82

93
export function activate() {
10-
activityBar.push({
4+
const newItem = {
115
id: '3333',
126
iconName: 'codicon-sync',
137
name: '数据同步',
14-
});
15-
16-
// moleculeCtx.a.components.push();
17-
18-
// moleculeCtx.sidebar.components.push();
19-
20-
// moleculeCtx.activityBar.onSelect = function(key, options) {
21-
// moleculeCtx.sidebar.render();
22-
// };
23-
24-
// moleculeCtx.sidebar.onSelect = function(key, options) {
25-
// moleculeCtx.sidebar.render('fafa', callback);
26-
// };
27-
28-
// moleculeCtx.editor.open(title, content, options, callback);
8+
};
9+
console.log('extend a new activity bar item:', newItem);
10+
activityBar.push(newItem);
2911
}

0 commit comments

Comments
 (0)