@@ -91,13 +91,13 @@ function Start-EditorServicesHost {
91
91
92
92
$editorServicesHost = $null
93
93
$hostDetails =
94
- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.HostDetails @ (
94
+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting. HostDetails @ (
95
95
$HostName ,
96
96
$HostProfileId ,
97
97
(Microsoft.PowerShell.Utility\New-Object System.Version @ ($HostVersion )))
98
98
99
99
$editorServicesHost =
100
- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.EditorServicesHost @ (
100
+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServicesHost @ (
101
101
$hostDetails ,
102
102
$BundledModulesPath ,
103
103
$EnableConsoleRepl.IsPresent ,
@@ -108,40 +108,40 @@ function Start-EditorServicesHost {
108
108
109
109
# Build the profile paths using the root paths of the current $profile variable
110
110
$profilePaths =
111
- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.ProfilePaths @ (
111
+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting. ProfilePaths @ (
112
112
$hostDetails.ProfileId ,
113
113
[System.IO.Path ]::GetDirectoryName($profile.AllUsersAllHosts ),
114
114
[System.IO.Path ]::GetDirectoryName($profile.CurrentUserAllHosts ))
115
115
116
116
$editorServicesHost.StartLogging ($LogPath , $LogLevel );
117
117
118
118
$languageServiceConfig =
119
- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportConfig
119
+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServiceTransportConfig
120
120
121
121
$debugServiceConfig =
122
- Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportConfig
122
+ Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServiceTransportConfig
123
123
124
124
switch ($PSCmdlet.ParameterSetName ) {
125
125
" Stdio" {
126
- $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType ]::Stdio
127
- $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType ]::Stdio
126
+ $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServiceTransportType ]::Stdio
127
+ $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServiceTransportType ]::Stdio
128
128
break
129
129
}
130
130
" NamedPipe" {
131
- $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType ]::NamedPipe
131
+ $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServiceTransportType ]::NamedPipe
132
132
$languageServiceConfig.InOutPipeName = " $LanguageServiceNamedPipe "
133
133
if ($DebugServiceNamedPipe ) {
134
- $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType ]::NamedPipe
134
+ $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServiceTransportType ]::NamedPipe
135
135
$debugServiceConfig.InOutPipeName = " $DebugServiceNamedPipe "
136
136
}
137
137
break
138
138
}
139
139
" NamedPipeSimplex" {
140
- $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType ]::NamedPipe
140
+ $languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServiceTransportType ]::NamedPipe
141
141
$languageServiceConfig.InPipeName = $LanguageServiceInNamedPipe
142
142
$languageServiceConfig.OutPipeName = $LanguageServiceOutNamedPipe
143
143
if ($DebugServiceInNamedPipe -and $DebugServiceOutNamedPipe ) {
144
- $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType ]::NamedPipe
144
+ $debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting. EditorServiceTransportType ]::NamedPipe
145
145
$debugServiceConfig.InPipeName = $DebugServiceInNamedPipe
146
146
$debugServiceConfig.OutPipeName = $DebugServiceOutNamedPipe
147
147
}
0 commit comments