()
| 54 | } |
| 55 | |
| 56 | public initView() { |
| 57 | const { |
| 58 | builtInSearchActivityItem, |
| 59 | builtInHeaderToolbar, |
| 60 | builtInSearchAddons, |
| 61 | builtInReplaceAddons, |
| 62 | } = this.builtinService.getModules(); |
| 63 | if (builtInSearchActivityItem) { |
| 64 | const SearchPanelView = connect( |
| 65 | this.searchService, |
| 66 | SearchPanel, |
| 67 | this |
| 68 | ); |
| 69 | |
| 70 | const searchSidePane = { |
| 71 | id: builtInSearchActivityItem.id, |
| 72 | title: 'SEARCH', |
| 73 | render() { |
| 74 | return <SearchPanelView />; |
| 75 | }, |
| 76 | }; |
| 77 | |
| 78 | this.searchService.setState({ |
| 79 | headerToolBar: builtInHeaderToolbar || [], |
| 80 | searchAddons: builtInSearchAddons || [], |
| 81 | replaceAddons: builtInReplaceAddons || [], |
| 82 | }); |
| 83 | |
| 84 | this.sidebarService.add(searchSidePane); |
| 85 | this.activityBarService.add(builtInSearchActivityItem); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | public validateValue = ( |
| 90 | value: string, |
no test coverage detected