Git - fix staging a deleted file from the multi-file diff editor (#275846)

This commit is contained in:
Ladislau Szomoru
2025-11-06 16:06:45 +00:00
committed by GitHub
parent 85a89a7412
commit 97fcd45030
@@ -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,
},