Skip to content

Commit 2c4136f

Browse files
authored
fix: reversing imports for correct precedence (#25)
1 parent 207c403 commit 2c4136f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DarkId.Papyrus.LanguageService/Projects/ProgramExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static ProgramOptionsBuilder WithProject(this ProgramOptionsBuilder build
1616

1717
builder.WithName(Path.GetFileNameWithoutExtension(projectInfo.ProjectFile))
1818
.WithFlagsFileName(projectInfo.Project.Flags)
19-
.WithSourceIncludes(projectInfo.Project.Imports.Select(import => new SourceInclude()
19+
.WithSourceIncludes(projectInfo.Project.Imports.Reverse().Select(import => new SourceInclude()
2020
{
2121
Path = Path.GetFullPath(Path.Combine(projectFileDirectory, PathUtilities.Normalize(import)))
2222
}));

0 commit comments

Comments
 (0)