getVSCodeIDECommand method

String? getVSCodeIDECommand(
  1. IdeType ideType
)

Get the VSCode CLI command for a given IDE type.

Implementation

String? getVSCodeIDECommand(IdeType ideType) {
  switch (ideType) {
    case IdeType.vscode:
      return 'code';
    case IdeType.cursor:
      return 'cursor';
    case IdeType.windsurf:
      return 'windsurf';
    default:
      return null;
  }
}