modernize vscode.executeColorPresentationProvider-command

This commit is contained in:
Johannes Rieken
2020-11-13 11:07:05 +01:00
parent e25b8819f7
commit 443c0db7c9
3 changed files with 33 additions and 52 deletions

View File

@@ -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) {