Skip to content

Commit 4f70a62

Browse files
committed
Change order of BundledModulesPath in PSModulePath
This change modifies the order of BundledModulesPath in our manipulation of the PSModulePath to include modules with the PowerShell extension. To ensure that newer modules on the user's system are used for certain integrations (like PSScriptAnalyzer or Plaster), the BundledModulesPath needs to go at the end of PSModulePath, not the beginning.
1 parent f8332d0 commit 4f70a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Start-EditorServices.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function Get-AvailablePort {
133133

134134
# Add BundledModulesPath to $env:PSModulePath
135135
if ($BundledModulesPath) {
136-
$env:PSMODULEPATH = $BundledModulesPath + [System.IO.Path]::PathSeparator + $env:PSMODULEPATH
136+
$env:PSMODULEPATH = $env:PSMODULEPATH + [System.IO.Path]::PathSeparator + $BundledModulesPath
137137
}
138138

139139
# Check if PowerShellGet module is available

0 commit comments

Comments
 (0)