@@ -8,15 +8,12 @@ if ($PSEdition -eq 'Desktop') {
88 Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/Desktop/System.IO.Pipes.AccessControl.dll"
99 Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/Desktop/System.Security.AccessControl.dll"
1010 Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/Desktop/System.Security.Principal.Windows.dll"
11- } elseif ($PSVersionTable.PSVersion -ge ' 6.0' -and $PSVersionTable.PSVersion -lt ' 6.1' -and $IsWindows ) {
12- Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/6.0/System.IO.Pipes.AccessControl.dll"
13- Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/6.0/System.Security.AccessControl.dll"
14- Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/6.0/System.Security.Principal.Windows.dll"
1511}
1612
1713Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/Microsoft.PowerShell.EditorServices.dll"
1814Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/Microsoft.PowerShell.EditorServices.Host.dll"
1915Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/Microsoft.PowerShell.EditorServices.Protocol.dll"
16+ Microsoft.PowerShell.Utility\Add-Type - Path " $PSScriptRoot /bin/Microsoft.PowerShell.EditorServices.Engine.dll"
2017
2118function Start-EditorServicesHost {
2219 [CmdletBinding ()]
@@ -97,13 +94,13 @@ function Start-EditorServicesHost {
9794
9895 $editorServicesHost = $null
9996 $hostDetails =
100- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Session .HostDetails @ (
97+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine .HostDetails @ (
10198 $HostName ,
10299 $HostProfileId ,
103100 (Microsoft.PowerShell.Utility\New-Object System.Version @ ($HostVersion )))
104101
105102 $editorServicesHost =
106- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Host .EditorServicesHost @ (
103+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine .EditorServicesHost @ (
107104 $hostDetails ,
108105 $BundledModulesPath ,
109106 $EnableConsoleRepl.IsPresent ,
@@ -114,40 +111,40 @@ function Start-EditorServicesHost {
114111
115112 # Build the profile paths using the root paths of the current $profile variable
116113 $profilePaths =
117- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Session .ProfilePaths @ (
114+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine .ProfilePaths @ (
118115 $hostDetails.ProfileId ,
119116 [System.IO.Path ]::GetDirectoryName($profile.AllUsersAllHosts ),
120117 [System.IO.Path ]::GetDirectoryName($profile.CurrentUserAllHosts ))
121118
122119 $editorServicesHost.StartLogging ($LogPath , $LogLevel );
123120
124121 $languageServiceConfig =
125- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Host .EditorServiceTransportConfig
122+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine .EditorServiceTransportConfig
126123
127124 $debugServiceConfig =
128- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Host .EditorServiceTransportConfig
125+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine .EditorServiceTransportConfig
129126
130127 switch ($PSCmdlet.ParameterSetName ) {
131128 " Stdio" {
132- $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Host .EditorServiceTransportType ]::Stdio
133- $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Host .EditorServiceTransportType ]::Stdio
129+ $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine .EditorServiceTransportType ]::Stdio
130+ $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine .EditorServiceTransportType ]::Stdio
134131 break
135132 }
136133 " NamedPipe" {
137- $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Host .EditorServiceTransportType ]::NamedPipe
134+ $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine .EditorServiceTransportType ]::NamedPipe
138135 $languageServiceConfig.InOutPipeName = " $LanguageServiceNamedPipe "
139136 if ($DebugServiceNamedPipe ) {
140- $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Host .EditorServiceTransportType ]::NamedPipe
137+ $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine .EditorServiceTransportType ]::NamedPipe
141138 $debugServiceConfig.InOutPipeName = " $DebugServiceNamedPipe "
142139 }
143140 break
144141 }
145142 " NamedPipeSimplex" {
146- $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Host .EditorServiceTransportType ]::NamedPipe
143+ $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine .EditorServiceTransportType ]::NamedPipe
147144 $languageServiceConfig.InPipeName = $LanguageServiceInNamedPipe
148145 $languageServiceConfig.OutPipeName = $LanguageServiceOutNamedPipe
149146 if ($DebugServiceInNamedPipe -and $DebugServiceOutNamedPipe ) {
150- $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Host .EditorServiceTransportType ]::NamedPipe
147+ $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine .EditorServiceTransportType ]::NamedPipe
151148 $debugServiceConfig.InPipeName = $DebugServiceInNamedPipe
152149 $debugServiceConfig.OutPipeName = $DebugServiceOutNamedPipe
153150 }
0 commit comments