Skip to content

Commit 5a371f3

Browse files
rjmholtTylerLeonhardt
authored andcommitted
Fix load order of PSSA modules (#705)
1 parent 292fc33 commit 5a371f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Analysis/AnalysisService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ private static RunspacePool CreatePssaRunspacePool(out PSModuleInfo pssaModuleIn
533533
pssaModuleInfo = ps.Invoke()?
534534
.Select(psObj => psObj.BaseObject)
535535
.OfType<PSModuleInfo>()
536-
.OrderBy(moduleInfo => moduleInfo.Version)
536+
.OrderByDescending(moduleInfo => moduleInfo.Version)
537537
.FirstOrDefault();
538538
}
539539
catch (Exception e)

0 commit comments

Comments
 (0)