Generate omnisharp.json file for VS Code solutions

This commit is contained in:
2023-01-08 15:13:10 +02:00
parent a7e428a21c
commit 20d8c9f4ee

View File

@@ -621,6 +621,22 @@ namespace Flax.Build.Projects.VisualStudioCode
json.EndRootObject();
json.Save(Path.Combine(vsCodeFolder, "extensions.json"));
}
// Create OmniSharp configuration file
using (var json = new JsonWriter())
{
json.BeginRootObject();
json.BeginObject("msbuild");
{
json.AddField("enabled", true);
json.AddField("Configuration", "Editor.Debug");
}
json.EndObject();
json.EndRootObject();
json.Save(Path.Combine(solution.WorkspaceRootPath, "omnisharp.json"));
}
}
}
}