From 2d84c0c184bc5b2b6c6187d9a98d8f5cd558d226 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 9 Oct 2020 23:21:30 +0100 Subject: [PATCH] HackStudio: Fix running JavaScript files s/String::format/String::formatted/ - the command was not being formatted properly. --- DevTools/HackStudio/HackStudioWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DevTools/HackStudio/HackStudioWidget.cpp b/DevTools/HackStudio/HackStudioWidget.cpp index 3ba31f7da9..ffe54ca1ea 100644 --- a/DevTools/HackStudio/HackStudioWidget.cpp +++ b/DevTools/HackStudio/HackStudioWidget.cpp @@ -601,7 +601,7 @@ void HackStudioWidget::build(TerminalWrapper& wrapper) void HackStudioWidget::run(TerminalWrapper& wrapper) { if (m_project->type() == ProjectType::JavaScript && m_currently_open_file.ends_with(".js")) - wrapper.run_command(String::format("js {}", m_currently_open_file)); + wrapper.run_command(String::formatted("js {}", m_currently_open_file)); else wrapper.run_command("make run"); }