Skip to content

Commit 5346056

Browse files
rename namespaces (PowerShell#1019)
1 parent 0e2f7b9 commit 5346056

File tree

155 files changed

+437
-646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+437
-646
lines changed

module/PowerShellEditorServices/PowerShellEditorServices.psm1

+11-11
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ function Start-EditorServicesHost {
9191

9292
$editorServicesHost = $null
9393
$hostDetails =
94-
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.HostDetails @(
94+
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting.HostDetails @(
9595
$HostName,
9696
$HostProfileId,
9797
(Microsoft.PowerShell.Utility\New-Object System.Version @($HostVersion)))
9898

9999
$editorServicesHost =
100-
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.EditorServicesHost @(
100+
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting.EditorServicesHost @(
101101
$hostDetails,
102102
$BundledModulesPath,
103103
$EnableConsoleRepl.IsPresent,
@@ -108,40 +108,40 @@ function Start-EditorServicesHost {
108108

109109
# Build the profile paths using the root paths of the current $profile variable
110110
$profilePaths =
111-
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.ProfilePaths @(
111+
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting.ProfilePaths @(
112112
$hostDetails.ProfileId,
113113
[System.IO.Path]::GetDirectoryName($profile.AllUsersAllHosts),
114114
[System.IO.Path]::GetDirectoryName($profile.CurrentUserAllHosts))
115115

116116
$editorServicesHost.StartLogging($LogPath, $LogLevel);
117117

118118
$languageServiceConfig =
119-
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportConfig
119+
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting.EditorServiceTransportConfig
120120

121121
$debugServiceConfig =
122-
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportConfig
122+
Microsoft.PowerShell.Utility\New-Object Microsoft.PowerShell.EditorServices.Engine.Hosting.EditorServiceTransportConfig
123123

124124
switch ($PSCmdlet.ParameterSetName) {
125125
"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
128128
break
129129
}
130130
"NamedPipe" {
131-
$languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType]::NamedPipe
131+
$languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting.EditorServiceTransportType]::NamedPipe
132132
$languageServiceConfig.InOutPipeName = "$LanguageServiceNamedPipe"
133133
if ($DebugServiceNamedPipe) {
134-
$debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType]::NamedPipe
134+
$debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting.EditorServiceTransportType]::NamedPipe
135135
$debugServiceConfig.InOutPipeName = "$DebugServiceNamedPipe"
136136
}
137137
break
138138
}
139139
"NamedPipeSimplex" {
140-
$languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType]::NamedPipe
140+
$languageServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting.EditorServiceTransportType]::NamedPipe
141141
$languageServiceConfig.InPipeName = $LanguageServiceInNamedPipe
142142
$languageServiceConfig.OutPipeName = $LanguageServiceOutNamedPipe
143143
if ($DebugServiceInNamedPipe -and $DebugServiceOutNamedPipe) {
144-
$debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.EditorServiceTransportType]::NamedPipe
144+
$debugServiceConfig.TransportType = [Microsoft.PowerShell.EditorServices.Engine.Hosting.EditorServiceTransportType]::NamedPipe
145145
$debugServiceConfig.InPipeName = $DebugServiceInNamedPipe
146146
$debugServiceConfig.OutPipeName = $DebugServiceOutNamedPipe
147147
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
//
2+
// Copyright (c) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
//
5+
16
namespace Microsoft.PowerShell.EditorServices.Engine
27
{
38
public static class BuildInfo
49
{
510
public const string BuildVersion = "<unset>";
611
public const string BuildOrigin = "<unset>";
7-
public static readonly System.DateTime? BuildTime = null;
12+
public static readonly System.DateTime? BuildTime;
813
}
914
}

src/PowerShellEditorServices.Engine/Hosting/EditorServicesHost.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
using System.Threading.Tasks;
1616
using Microsoft.Extensions.Logging;
1717
using Microsoft.PowerShell.EditorServices.Engine.Server;
18+
using Microsoft.PowerShell.EditorServices.Utility;
1819
using Serilog;
1920

20-
namespace Microsoft.PowerShell.EditorServices.Engine
21+
namespace Microsoft.PowerShell.EditorServices.Engine.Hosting
2122
{
2223
public enum EditorServicesHostStatus
2324
{

src/PowerShellEditorServices.Engine/Hosting/HostDetails.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
namespace Microsoft.PowerShell.EditorServices.Engine
8+
namespace Microsoft.PowerShell.EditorServices.Engine.Hosting
99
{
1010
/// <summary>
1111
/// Contains details about the current host application (most

src/PowerShellEditorServices.Engine/Hosting/ProfilePaths.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using System;
76
using System.Collections.Generic;
87
using System.IO;
98
using System.Linq;
10-
using System.Management.Automation.Runspaces;
119

12-
namespace Microsoft.PowerShell.EditorServices.Engine
10+
namespace Microsoft.PowerShell.EditorServices.Engine.Hosting
1311
{
1412
/// <summary>
1513
/// Provides profile path resolution behavior relative to the name

src/PowerShellEditorServices.Engine/Hosting/PsesLogLevel.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
//
2+
// Copyright (c) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
//
5+
16
using Microsoft.Extensions.Logging;
27

3-
namespace Microsoft.PowerShell.EditorServices.Engine
8+
namespace Microsoft.PowerShell.EditorServices.Engine.Hosting
49
{
510
public enum PsesLogLevel
611
{

0 commit comments

Comments
 (0)