From 1fbd1c1467c2bf146bf1a2a41bdf3a7beddca1c4 Mon Sep 17 00:00:00 2001 From: "David Wilson (POWERSHELL)" Date: Fri, 7 Apr 2017 14:31:15 -0700 Subject: [PATCH] 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 #662. --- scripts/Start-EditorServices.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Start-EditorServices.ps1 b/scripts/Start-EditorServices.ps1 index 0cd349789a..47717a0543 100644 --- a/scripts/Start-EditorServices.ps1 +++ b/scripts/Start-EditorServices.ps1 @@ -181,7 +181,7 @@ function Get-AvailablePort { # Add BundledModulesPath to $env:PSModulePath if ($BundledModulesPath) { - $env:PSMODULEPATH = $env:PSMODULEPATH + [System.IO.Path]::PathSeparator + $BundledModulesPath + $env:PSModulePath = $env:PSModulePath + [System.IO.Path]::PathSeparator + $BundledModulesPath } # Check if PowerShellGet module is available