mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
modernize vscode.executeColorPresentationProvider-command
This commit is contained in:
@@ -407,10 +407,6 @@ export abstract class EditorAction2 extends Action2 {
|
||||
|
||||
// --- Registration of commands and actions
|
||||
|
||||
export function registerLanguageCommand<Args extends { [n: string]: any; }>(id: string, handler: (accessor: ServicesAccessor, args: Args) => any) {
|
||||
CommandsRegistry.registerCommand(id, (accessor, args) => handler(accessor, args || {}));
|
||||
}
|
||||
|
||||
|
||||
export function registerModelAndPositionCommand(id: string, handler: (model: ITextModel, position: Position, ...args: any[]) => any) {
|
||||
CommandsRegistry.registerCommand(id, function (accessor, ...args) {
|
||||
|
||||
Reference in New Issue
Block a user