Skip to content

Commit

Permalink
fix: add the built-in addons for the searchPane (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
wewoor authored Jun 22, 2021
1 parent d5dca2e commit 793876d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/controller/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import {
SEARCH_REPLACE_ALL_COMMAND_ID,
SEARCH_ACTIVITY_ITEM,
builtInSearchActivityItem,
builtInHeaderToolbar,
builtInSearchAddons,
builtInReplaceAddons,
} from 'mo/model/workbench/search';
import {
ActivityBarService,
Expand Down Expand Up @@ -98,6 +101,12 @@ export class SearchController extends Controller implements ISearchController {

this.sidebarService.push(searchSidePane);

this.searchService.setState({
headerToolBar: builtInHeaderToolbar(),
searchAddons: builtInSearchAddons(),
replaceAddons: builtInReplaceAddons(),
});

this.activityBarService.addBar(builtInSearchActivityItem());

this.activityBarService.onSelect((e, item: IActivityBarItem) => {
Expand Down

0 comments on commit 793876d

Please sign in to comment.