diff --git a/client/src/command/CompileBranFlakesCommand.ts b/client/src/command/CompileBranFlakesCommand.ts index 23fd32e..facbb49 100644 --- a/client/src/command/CompileBranFlakesCommand.ts +++ b/client/src/command/CompileBranFlakesCommand.ts @@ -3,27 +3,27 @@ import type { BranFlakesCommand } from './BranFlakesCommand'; import { VSCodePromptInputStrategy } from '../input/VSCodePromptInputStrategy'; export class CompileBranFlakesCommand implements BranFlakesCommand { - getCommandName() { - return 'bf.execute'; - } - getCommandHandler() { - return async () => { - const text = window.activeTextEditor.document.getText(); - const fn = window.activeTextEditor.document.fileName; - const inputStrategy = new VSCodePromptInputStrategy( - window.showInputBox - ); - const { BranFlakesExecutorVisitor } = await import( - '../BranFlakesExecutorVisitor' - ); + getCommandName() { + return 'bf.execute'; + } + getCommandHandler() { + return async () => { + const text = window.activeTextEditor.document.getText(); + const fn = window.activeTextEditor.document.fileName; + const inputStrategy = new VSCodePromptInputStrategy( + window.showInputBox + ); + const { BranFlakesExecutorVisitor } = await import( + '../BranFlakesExecutorVisitor' + ); - const output = await BranFlakesExecutorVisitor.run( - text, - fn, - inputStrategy, - window.showInformationMessage - ); - await window.showInformationMessage(`Output: ${output}`); - }; - } + const output = await BranFlakesExecutorVisitor.run( + text, + fn, + inputStrategy, + window.showInformationMessage + ); + await window.showInformationMessage(`Output: ${output}`); + }; + } }