Skip to content

Commit

Permalink
Add OSRuntimeIdString / ProcessRuntimeIdString.
Browse files Browse the repository at this point in the history
  • Loading branch information
ww898 committed Apr 17, 2023
1 parent f26dbca commit 006cb49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions JetBrains.HabitatDetector/src/HabitatInfo.Name.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace JetBrains.HabitatDetector
{
public static partial class HabitatInfo
{
public static string OSRuntimeIdString => GetRuntimeIdString(Platform, OSArchitecture, LinuxLibC);
public static string ProcessRuntimeIdString => GetRuntimeIdString(Platform, ProcessArchitecture, LinuxLibC);

public static string GetRuntimeIdName(JetPlatform platform)
{
return platform switch
Expand Down
3 changes: 3 additions & 0 deletions JetBrains.HabitatDetector/tests/HabitatInfoTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ public void CurrentTest()
Assert.IsNull(HabitatInfo.WindowsElevationType);
}

Console.WriteLine("{0}: {1}", nameof(HabitatInfo.ProcessRuntimeIdString), HabitatInfo.ProcessRuntimeIdString);
Console.WriteLine("{0}: {1}", nameof(HabitatInfo.OSRuntimeIdString), HabitatInfo.OSRuntimeIdString);

if (HabitatInfo.Platform == JetPlatform.Linux)
{
Console.WriteLine("{0}: {1}", nameof(HabitatInfo.LinuxLibC), HabitatInfo.LinuxLibC?.ToString() ?? "<null>");
Expand Down

0 comments on commit 006cb49

Please sign in to comment.