Skip to content

Commit 1fbd1c1

Browse files
committed
Fix extension startup on Linux/macOS with PS 6 Alpha 18
This change fixes an issue caused by PowerShell 6 Alpha 18 where the PSModulePath casing on UNIX systems has been changed from PSMODULEPATH back to PSModulePath. This change broke the startup script that manipulates the PSModulePath so the extension fails to load in the new version. This is a breaking change for those using a previous version of PowerShell 6 on UNIX systems. Fixes PowerShell#662.
1 parent 054f712 commit 1fbd1c1

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
@@ -181,7 +181,7 @@ function Get-AvailablePort {
181181

182182
# Add BundledModulesPath to $env:PSModulePath
183183
if ($BundledModulesPath) {
184-
$env:PSMODULEPATH = $env:PSMODULEPATH + [System.IO.Path]::PathSeparator + $BundledModulesPath
184+
$env:PSModulePath = $env:PSModulePath + [System.IO.Path]::PathSeparator + $BundledModulesPath
185185
}
186186

187187
# Check if PowerShellGet module is available

0 commit comments

Comments
 (0)