Skip to content

Commit

Permalink
feat: also include FL Studio version in --plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ascpixi committed Jan 5, 2025
1 parent d700506 commit 69daa2b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions WakaTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ public static void EmitHeartbeat(string projectPath, bool isWrite = false)
continue;

wakatimeProject = line[18..];
if (wakatimeProject == "(none)") {
GC.Collect();
return; // project is explicitly ignored
if (wakatimeProject == "(none)") {
GC.Collect();
return; // project is explicitly ignored
}

break;
Expand Down Expand Up @@ -221,7 +221,7 @@ public static void EmitHeartbeat(string projectPath, bool isWrite = false)
"--entity", projectPath,
"--category", PreferredCategory,
"--lines-in-file", entityCount.ToString(),
"--plugin", $"wakatime-flstudio/{App.Version}",
"--plugin", $"flstudio/{proj.VersionString} wakatime-flstudio/{App.Version}",
{ "--write", isWrite },
{ ["--project", wakatimeProject!], wakatimeProject != null }
}
Expand All @@ -235,10 +235,10 @@ public static void EmitHeartbeat(string projectPath, bool isWrite = false)
// We only log heartbeats in debug mode.
else {
Log.Info($"Heartbeat: {projectPath}, {entityCount} entities, write: {isWrite}");
}
}
#endif
#endif


GC.Collect();
}

Expand Down

0 comments on commit 69daa2b

Please sign in to comment.