Merge pull request #41751 from neikeq/3.2-issue-41745

[3.2] C#: Fix Godot failing to find class namespace
This commit is contained in:
Rémi Verschelde 2020-09-04 08:16:30 +02:00 committed by GitHub
commit 1edd6aa404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ namespace GodotTools.ProjectEditor
if (root.AreDefaultCompileItemsEnabled())
{
var excluded = new List<string>();
result = GetAllFilesRecursive(Path.GetDirectoryName(projectPath), "*.cs").ToList();
result.AddRange(existingFiles);
foreach (var item in root.Items)
{

View File

@ -48,7 +48,7 @@ namespace GodotTools
var firstMatch = classes.FirstOrDefault(classDecl =>
classDecl.BaseCount != 0 && // If it doesn't inherit anything, it can't be a Godot.Object.
classDecl.SearchName != searchName // Filter by the name we're looking for
classDecl.SearchName == searchName // Filter by the name we're looking for
);
if (firstMatch == null)