Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/browser/widget/multiDiffEditor/utils.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { ActionRunner, IAction } from '../../../../base/common/actions.js';
7
8
export class ActionRunnerWithContext extends ActionRunner {
9
constructor(private readonly _getContext: () => unknown) {
10
super();
11
}
12
13
protected override runAction(action: IAction, _context?: unknown): Promise<void> {
14
const ctx = this._getContext();
15
return super.runAction(action, ctx);
16
}
17
}
18
19