File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/format/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,14 @@ import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegis
1414import { ICommandService } from 'vs/platform/commands/common/commands' ;
1515import { IViewletService } from 'vs/workbench/services/viewlet/browser/viewlet' ;
1616import { INotificationService , Severity } from 'vs/platform/notification/common/notification' ;
17- import { showExtensionQuery } from 'vs/workbench/contrib/format/browser/showExtensionQuery' ;
17+ import { VIEWLET_ID , IExtensionsViewPaneContainer } from 'vs/workbench/contrib/extensions/common/extensions' ;
18+
19+ async function showExtensionQuery ( viewletService : IViewletService , query : string ) {
20+ const viewlet = await viewletService . openViewlet ( VIEWLET_ID , true ) ;
21+ if ( viewlet ) {
22+ ( viewlet ?. getViewPaneContainer ( ) as IExtensionsViewPaneContainer ) . search ( query ) ;
23+ }
24+ }
1825
1926registerEditorAction ( class FormatDocumentMultipleAction extends EditorAction {
2027
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments