Skip to content

Commit 96ec6e5

Browse files
sailroGitHub Enterprise
authored andcommitted
Merge pull request #203 from unity/add-af-ext
Add additionalfile extension to the list of monitored ones
2 parents bae4d1a + 155b0cd commit 96ec6e5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Packages/com.unity.ide.visualstudio/Editor/ProjectGeneration/ProjectGeneration.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public class ProjectGeneration : IGenerator
5959

6060
HashSet<string> m_ProjectSupportedExtensions = new HashSet<string>();
6161
HashSet<string> m_BuiltinSupportedExtensions = new HashSet<string>();
62+
HashSet<string> m_DefaultSupportedExtensions = new HashSet<string>(new string[] { "dll", "asmdef", "additionalfile" });
6263

6364
readonly string m_ProjectName;
6465
internal readonly IAssemblyNameProvider m_AssemblyNameProvider;
@@ -239,10 +240,7 @@ private bool IsSupportedFile(string path, out string extensionWithoutDot)
239240
extensionWithoutDot = GetExtensionWithoutDot(path);
240241

241242
// Dll's are not scripts but still need to be included
242-
if (extensionWithoutDot == "dll")
243-
return true;
244-
245-
if (extensionWithoutDot == "asmdef")
243+
if (m_DefaultSupportedExtensions.Contains(extensionWithoutDot))
246244
return true;
247245

248246
if (m_BuiltinSupportedExtensions.Contains(extensionWithoutDot))

0 commit comments

Comments
 (0)