@@ -7,7 +7,7 @@ import { LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle';
77import { Registry } from 'vs/platform/registry/common/platform' ;
88import { Extensions as WorkbenchExtensions , IWorkbenchContributionsRegistry } from 'vs/workbench/common/contributions' ;
99import { IPanelService } from 'vs/workbench/services/panel/common/panelService' ;
10- import { IBulkEditService } from 'vs/editor/browser/services/bulkEditService' ;
10+ import { IBulkEditService , IBulkEditOptions } from 'vs/editor/browser/services/bulkEditService' ;
1111import { WorkspaceEdit } from 'vs/editor/common/modes' ;
1212import { BulkEditPane } from 'vs/workbench/contrib/bulkEdit/browser/bulkEditPane' ;
1313import { IViewContainersRegistry , Extensions as ViewContainerExtensions , ViewContainerLocation , IViewsRegistry } from 'vs/workbench/common/views' ;
@@ -46,11 +46,11 @@ class BulkEditPreviewContribution {
4646 @IBulkEditService bulkEditService : IBulkEditService ,
4747 @IContextKeyService contextKeyService : IContextKeyService ,
4848 ) {
49- bulkEditService . setPreviewHandler ( edit => this . _previewEdit ( edit ) ) ;
49+ bulkEditService . setPreviewHandler ( ( edit , options ) => this . _previewEdit ( edit , options ) ) ;
5050 this . _ctxEnabled = BulkEditPreviewContribution . ctxEnabled . bindTo ( contextKeyService ) ;
5151 }
5252
53- private async _previewEdit ( edit : WorkspaceEdit ) {
53+ private async _previewEdit ( edit : WorkspaceEdit , options ?: IBulkEditOptions ) {
5454 this . _ctxEnabled . set ( true ) ;
5555 const oldActivePanel = this . _panelService . getActivePanel ( ) ;
5656
@@ -60,7 +60,7 @@ class BulkEditPreviewContribution {
6060 return edit ;
6161 }
6262
63- const newEditOrUndefined = await view . setInput ( edit ) ;
63+ const newEditOrUndefined = await view . setInput ( edit , options ?. label ) ;
6464 if ( ! newEditOrUndefined ) {
6565 return { edits : [ ] } ;
6666 }
0 commit comments