Skip to content

Commit

Permalink
feat: only push item
Browse files Browse the repository at this point in the history
  • Loading branch information
wewoor committed Oct 31, 2020
1 parent 81002ab commit 1363592
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions stories/extensions/data-sync/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
import { activityBar } from 'mo/index';

// import * as React from 'react';

// const BarB: React.FunctionComponent = () => {
// return (<div>affefefe</div>);
// };
import { activityBar } from 'mo';

export function activate() {
activityBar.push({
const newItem = {
id: '3333',
iconName: 'codicon-sync',
name: '数据同步',
});

// moleculeCtx.a.components.push();

// moleculeCtx.sidebar.components.push();

// moleculeCtx.activityBar.onSelect = function(key, options) {
// moleculeCtx.sidebar.render();
// };

// moleculeCtx.sidebar.onSelect = function(key, options) {
// moleculeCtx.sidebar.render('fafa', callback);
// };

// moleculeCtx.editor.open(title, content, options, callback);
};
console.log('extend a new activity bar item:', newItem);
activityBar.push(newItem);
}

0 comments on commit 1363592

Please sign in to comment.