Files
vscode/src/vs/editor/browser/widget/multiDiffEditor/utils.ts
T
Henning Dieterichs b7d35c8bdd Implements #206808
2024-03-15 17:08:36 +01:00

18 lines
715 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ActionRunner, IAction } from 'vs/base/common/actions';
export class ActionRunnerWithContext extends ActionRunner {
constructor(private readonly _getContext: () => unknown) {
super();
}
protected override runAction(action: IAction, _context?: unknown): Promise<void> {
const ctx = this._getContext();
return super.runAction(action, ctx);
}
}