Make plugins into their own folders in VSCode. Order VSCode plugin folders with Engine at the bottom.

This commit is contained in:
Chandler Cox
2025-08-02 09:28:49 -05:00
parent f37b75df7b
commit e27880c1e6

View File

@@ -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();
{ {