File tree 1 file changed +5
-23
lines changed
stories/extensions/data-sync/src
1 file changed +5
-23
lines changed Original file line number Diff line number Diff line change 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' ;
8
2
9
3
export function activate ( ) {
10
- activityBar . push ( {
4
+ const newItem = {
11
5
id : '3333' ,
12
6
iconName : 'codicon-sync' ,
13
7
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 ) ;
29
11
}
You can’t perform that action at this time.
0 commit comments