1 import { Command } from "./command.mjs";
2 import Logger from "../logger.mjs";
3 import { commands, workspace } from "vscode";
6 * Relay command for toggling the debug layout (debug activity bar and debug repl).
8 export default class DebugLayoutCommand extends Command {
9 private _logger: Logger = new Logger("DebugLayoutCommand");
11 public static readonly id = "debugLayout";
14 super(DebugLayoutCommand.id);
17 async execute(): Promise<void> {
18 await commands.executeCommand("workbench.view.debug");
20 if (!(await workspace.getConfiguration().get("inDebugRepl"))) {
21 await commands.executeCommand("workbench.debug.action.toggleRepl");