Skip to content

Commit

Permalink
feat: sync main code
Browse files Browse the repository at this point in the history
sync main code
  • Loading branch information
zhangtengjin authored and wewoor committed Apr 14, 2021
1 parent 60056ad commit 381f11a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/workbench/activityBarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { EXPLORER_ACTIVITY_ITEM } from 'mo/model/workbench/explorer/explorer';
import { SEARCH_ACTIVITY_ITEM } from 'mo/model/workbench/search';
import { searchById } from '../helper';
import { IMenuBarItem } from 'mo/model';
import { IMenuItem } from 'mo/components/menu';

export interface IActivityBarService extends Component<IActivityBar> {
showHide(): void;
Expand All @@ -19,7 +19,7 @@ export interface IActivityBarService extends Component<IActivityBar> {
remove(id: string): void;
toggleBar(id?: string): void;
updateContextMenuCheckStatus(id?: string): void;
addConextMenu(contextMenu: IMenuBarItem | IMenuBarItem[]): void;
addConextMenu(contextMenu: IMenuItem | IMenuItem[]): void;
removeContextMenu(id: string): void;
/**
* Add click event listener
Expand Down Expand Up @@ -114,7 +114,7 @@ export class ActivityBarService
});
}

public addConextMenu(contextMenu: IMenuBarItem | IMenuBarItem[]) {
public addConextMenu(contextMenu: IMenuItem | IMenuItem[]) {
let next = [...this.state.contextMenu!];
if (Array.isArray(contextMenu)) {
next = next?.concat(contextMenu);
Expand Down

0 comments on commit 381f11a

Please sign in to comment.