We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
registerCommand
1 parent 75fa98d commit 212a226Copy full SHA for 212a226
1 file changed
src/common/command.api.ts
@@ -1,5 +1,10 @@
1
/* eslint-disable @typescript-eslint/no-explicit-any */
2
import { commands } from 'vscode';
3
+import { Disposable } from 'vscode-jsonrpc';
4
+
5
+export function registerCommand(command: string, callback: (...args: any[]) => any, thisArg?: any): Disposable {
6
+ return commands.registerCommand(command, callback, thisArg);
7
+}
8
9
export function executeCommand<T = unknown>(command: string, ...rest: any[]): Thenable<T> {
10
return commands.executeCommand(command, ...rest);
0 commit comments