mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
HackStudio: Rename ProjectType::{Javascript -> JavaScript}
This commit is contained in:
parent
85b69e54e4
commit
520d464865
Notes:
sideshowbarker
2024-07-19 06:54:41 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/520d464865f Pull-request: https://github.com/SerenityOS/serenity/pull/2145
@ -233,7 +233,7 @@ OwnPtr<Project> Project::load_from_file(const String& path)
|
||||
|
||||
for (auto& file : files) {
|
||||
if (file.ends_with(".js")) {
|
||||
type = ProjectType::Javascript;
|
||||
type = ProjectType::JavaScript;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
enum class ProjectType {
|
||||
Unknown,
|
||||
Cpp,
|
||||
Javascript
|
||||
JavaScript
|
||||
};
|
||||
|
||||
class Project {
|
||||
|
@ -686,7 +686,7 @@ int main(int argc, char** argv)
|
||||
|
||||
void build(TerminalWrapper& wrapper)
|
||||
{
|
||||
if (g_project->type() == ProjectType::Javascript && g_currently_open_file.ends_with(".js"))
|
||||
if (g_project->type() == ProjectType::JavaScript && g_currently_open_file.ends_with(".js"))
|
||||
wrapper.run_command(String::format("js -A %s", g_currently_open_file.characters()));
|
||||
else
|
||||
wrapper.run_command("make");
|
||||
@ -694,7 +694,7 @@ void build(TerminalWrapper& wrapper)
|
||||
|
||||
void run(TerminalWrapper& wrapper)
|
||||
{
|
||||
if (g_project->type() == ProjectType::Javascript && g_currently_open_file.ends_with(".js"))
|
||||
if (g_project->type() == ProjectType::JavaScript && g_currently_open_file.ends_with(".js"))
|
||||
wrapper.run_command(String::format("js %s", g_currently_open_file.characters()));
|
||||
else
|
||||
wrapper.run_command("make run");
|
||||
|
Loading…
Reference in New Issue
Block a user