Make plugins into their own folders in VSCode. Order VSCode plugin folders with Engine at the bottom.
This commit is contained in:
@@ -648,6 +648,7 @@ namespace Flax.Build.Projects.VisualStudioCode
|
|||||||
json.AddField("**/Screenshots", true);
|
json.AddField("**/Screenshots", true);
|
||||||
json.AddField("**/Output", true);
|
json.AddField("**/Output", true);
|
||||||
json.AddField("**/*.flax", true);
|
json.AddField("**/*.flax", true);
|
||||||
|
json.AddField("**/Plugins", true);
|
||||||
json.EndObject();
|
json.EndObject();
|
||||||
|
|
||||||
// Extension settings
|
// Extension settings
|
||||||
@@ -683,9 +684,15 @@ namespace Flax.Build.Projects.VisualStudioCode
|
|||||||
json.EndObject();
|
json.EndObject();
|
||||||
|
|
||||||
// Referenced projects outside the current project (including engine too)
|
// Referenced projects outside the current project (including engine too)
|
||||||
foreach (var project in Globals.Project.GetAllProjects())
|
var projects = Globals.Project.GetAllProjects();
|
||||||
|
// Move Engine to last for organizational purposes.
|
||||||
|
var engineProject = projects.First(x => x.Name == "Flax");
|
||||||
|
var projectsWithoutEngine = projects.Where(x => x.Name != "Flax");
|
||||||
|
projectsWithoutEngine = projectsWithoutEngine.OrderBy(x => x.Name);
|
||||||
|
var sortedProjects = projectsWithoutEngine.Concat([engineProject]);
|
||||||
|
foreach (var project in sortedProjects)
|
||||||
{
|
{
|
||||||
if (!project.ProjectFolderPath.Contains(Globals.Project.ProjectFolderPath))
|
if (!project.ProjectFolderPath.Equals(Globals.Project.ProjectFolderPath))
|
||||||
{
|
{
|
||||||
json.BeginObject();
|
json.BeginObject();
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user