monaco-editor
Version:
A browser based code editor
16 lines (15 loc) • 700 B
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ActionRunner } from '../../../../base/common/actions.js';
export class ActionRunnerWithContext extends ActionRunner {
constructor(_getContext) {
super();
this._getContext = _getContext;
}
runAction(action, _context) {
const ctx = this._getContext();
return super.runAction(action, ctx);
}
}