Skip to content

Commit a954a5c

Browse files
committed
check for projects as well
1 parent b90913e commit a954a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,13 @@ private void PatchSettingsFile(string settingsFile)
374374
var patchList = new List<string>();
375375
var patched = false;
376376

377-
// Remove files.exclude for solution files in the project root
377+
// Remove files.exclude for solution+project files in the project root
378378
foreach (var exclude in excludes)
379379
{
380380
if (!exclude.Value.Value<bool>())
381381
continue;
382382

383-
if (Regex.IsMatch(exclude.Key, "^(\\*\\*[\\\\\\/])?\\*\\.sln$"))
383+
if (Regex.IsMatch(exclude.Key, "^(\\*\\*[\\\\\\/])?\\*\\.(sln|csproj)$"))
384384
{
385385
patchList.Add(exclude.Key);
386386
patched = true;

0 commit comments

Comments
 (0)