Skip to content

Commit 793876d

Browse files
authored
fix: add the built-in addons for the searchPane (#193)
1 parent d5dca2e commit 793876d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/controller/search/search.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import {
1414
SEARCH_REPLACE_ALL_COMMAND_ID,
1515
SEARCH_ACTIVITY_ITEM,
1616
builtInSearchActivityItem,
17+
builtInHeaderToolbar,
18+
builtInSearchAddons,
19+
builtInReplaceAddons,
1720
} from 'mo/model/workbench/search';
1821
import {
1922
ActivityBarService,
@@ -98,6 +101,12 @@ export class SearchController extends Controller implements ISearchController {
98101

99102
this.sidebarService.push(searchSidePane);
100103

104+
this.searchService.setState({
105+
headerToolBar: builtInHeaderToolbar(),
106+
searchAddons: builtInSearchAddons(),
107+
replaceAddons: builtInReplaceAddons(),
108+
});
109+
101110
this.activityBarService.addBar(builtInSearchActivityItem());
102111

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

0 commit comments

Comments
 (0)