1 import { commands, type Disposable } from "vscode";
3 const extensionId = "raspberry-pi-pico";
5 export default abstract class Command {
6 private readonly commandId: string;
8 protected constructor(commandId: string) {
9 this.commandId = commandId;
12 register(): Disposable {
13 return commands.registerCommand(
14 extensionId + "." + this.commandId,
15 this.execute.bind(this)
19 abstract execute(): Promise<void>;