Mac progress
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// Copyright (c) 2012-2020 Flax Engine. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using Flax.Build.Platforms;
|
||||
|
||||
@@ -67,6 +68,28 @@ namespace Flax.Build.Projects.VisualStudioCode
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TargetPlatform.Mac:
|
||||
{
|
||||
var userFolder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
||||
var paths = new string[]
|
||||
{
|
||||
"/Applications/Visual Studio Code.app",
|
||||
userFolder + "/Visual Studio Code.app",
|
||||
userFolder + "/Downloads/Visual Studio Code.app",
|
||||
};
|
||||
foreach (var path in paths)
|
||||
{
|
||||
if (Directory.Exists(path))
|
||||
{
|
||||
_instance = new VisualStudioCodeInstance
|
||||
{
|
||||
Path = path,
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (_instance != null)
|
||||
|
||||
Reference in New Issue
Block a user