mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Git - fix staging a deleted file from the multi-file diff editor (#275846)
This commit is contained in:
@@ -184,7 +184,7 @@ export class DiffEditorItemTemplate extends Disposable implements IPooledObject<
|
||||
this._contextKeyService = this._register(_parentContextKeyService.createScoped(this._elements.actions));
|
||||
const instantiationService = this._register(this._instantiationService.createChild(new ServiceCollection([IContextKeyService, this._contextKeyService])));
|
||||
this._register(instantiationService.createInstance(MenuWorkbenchToolBar, this._elements.actions, MenuId.MultiDiffEditorFileToolbar, {
|
||||
actionRunner: this._register(new ActionRunnerWithContext(() => (this._viewModel.get()?.modifiedUri))),
|
||||
actionRunner: this._register(new ActionRunnerWithContext(() => (this._viewModel.get()?.modifiedUri ?? this._viewModel.get()?.originalUri))),
|
||||
menuOptions: {
|
||||
shouldForwardArgs: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user