Skip to content

Commit 79a586b

Browse files
authored
Merge pull request #1580 from rjmholt/pt-fix-headers
2 parents ccc2fc2 + de18309 commit 79a586b

File tree

75 files changed

+229
-262
lines changed

Some content is hidden

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

75 files changed

+229
-262
lines changed

src/PowerShellEditorServices/Extensions/Api/EditorExtensionServiceProvider.cs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Linq.Expressions;
66
using System.Reflection;
77
using Microsoft.Extensions.DependencyInjection;
8-
using Microsoft.PowerShell.EditorServices.Services;
98
using Microsoft.PowerShell.EditorServices.Services.Extension;
109
using Microsoft.PowerShell.EditorServices.Utility;
1110
using OmniSharp.Extensions.LanguageServer.Protocol.Server;

src/PowerShellEditorServices/Extensions/Api/ExtensionCommandService.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
using Microsoft.PowerShell.EditorServices.Services;
54
using Microsoft.PowerShell.EditorServices.Services.Extension;
65
using System;
76
using System.Collections.Generic;

src/PowerShellEditorServices/Extensions/Api/LanguageServerService.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
using MediatR;
54
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
65
using System.Threading;
76
using System.Threading.Tasks;

src/PowerShellEditorServices/Extensions/Api/WorkspaceService.cs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System;
66
using System.Collections.Generic;
77
using System.Management.Automation.Language;
8-
using System.Threading.Tasks;
98

109
namespace Microsoft.PowerShell.EditorServices.Extensions.Services
1110
{

src/PowerShellEditorServices/Extensions/EditorContext.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
using System;
54
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
65

76
namespace Microsoft.PowerShell.EditorServices.Extensions

src/PowerShellEditorServices/Extensions/EditorWorkspace.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
using System.Threading.Tasks;
5-
64
namespace Microsoft.PowerShell.EditorServices.Extensions
75
{
86
/// <summary>

src/PowerShellEditorServices/Hosting/EditorServicesServerFactory.cs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Microsoft.Extensions.Logging;
99
using Microsoft.PowerShell.EditorServices.Logging;
1010
using Microsoft.PowerShell.EditorServices.Server;
11-
using Microsoft.PowerShell.EditorServices.Services;
1211
using Serilog;
1312
using Serilog.Events;
1413
using OmniSharp.Extensions.LanguageServer.Protocol.Server;

src/PowerShellEditorServices/Logging/HostLoggerAdapter.cs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
using Microsoft.Extensions.Logging;
55
using System;
6-
using System.Collections.Generic;
7-
using System.Text;
86

97
namespace Microsoft.PowerShell.EditorServices.Logging
108
{

src/PowerShellEditorServices/Server/PsesDebugServer.cs

-5
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@
33

44
using System;
55
using System.IO;
6-
using System.Management.Automation;
7-
using System.Threading;
86
using System.Threading.Tasks;
97
using Microsoft.Extensions.DependencyInjection;
108
using Microsoft.Extensions.Logging;
119
using Microsoft.PowerShell.EditorServices.Handlers;
1210
using Microsoft.PowerShell.EditorServices.Services;
13-
using Microsoft.PowerShell.EditorServices.Services.PowerShell;
1411
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Debugging;
1512
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
16-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Runspace;
17-
using Microsoft.PowerShell.EditorServices.Utility;
1813
using OmniSharp.Extensions.DebugAdapter.Server;
1914
using OmniSharp.Extensions.LanguageServer.Server;
2015

src/PowerShellEditorServices/Server/PsesLanguageServer.cs

-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33

44
using System;
55
using System.IO;
6-
using System.Management.Automation;
76
using System.Threading.Tasks;
87
using Microsoft.Extensions.DependencyInjection;
98
using Microsoft.Extensions.Logging;
109
using Microsoft.PowerShell.EditorServices.Handlers;
1110
using Microsoft.PowerShell.EditorServices.Hosting;
1211
using Microsoft.PowerShell.EditorServices.Services;
1312
using Microsoft.PowerShell.EditorServices.Services.Extension;
14-
using Microsoft.PowerShell.EditorServices.Services.PowerShell;
15-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
1613
using Microsoft.PowerShell.EditorServices.Services.Template;
1714
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
1815
using OmniSharp.Extensions.LanguageServer.Server;

src/PowerShellEditorServices/Server/PsesServiceCollectionExtensions.cs

-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
// Licensed under the MIT License.
33

44
using System;
5-
using System.Collections.Generic;
6-
using System.Management.Automation.Host;
75
using Microsoft.Extensions.DependencyInjection;
8-
using Microsoft.Extensions.Logging;
96
using Microsoft.PowerShell.EditorServices.Hosting;
107
using Microsoft.PowerShell.EditorServices.Services;
118
using Microsoft.PowerShell.EditorServices.Services.Extension;

src/PowerShellEditorServices/Services/DebugAdapter/BreakpointService.cs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using Microsoft.PowerShell.EditorServices.Logging;
1212
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
1313
using Microsoft.PowerShell.EditorServices.Services.PowerShell;
14-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
1514
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
1615

1716
namespace Microsoft.PowerShell.EditorServices.Services

src/PowerShellEditorServices/Services/DebugAdapter/Debugging/DebuggerStoppedEventArgs.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
54
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Runspace;
65
using Microsoft.PowerShell.EditorServices.Utility;
76
using System.Management.Automation;

src/PowerShellEditorServices/Services/DebugAdapter/Debugging/VariableDetailsBase.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
using Microsoft.Extensions.Logging;
5-
using Microsoft.PowerShell.EditorServices.Utility;
65

76
namespace Microsoft.PowerShell.EditorServices.Services.DebugAdapter
87
{

src/PowerShellEditorServices/Services/DebugAdapter/Handlers/ConfigurationDoneHandler.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
using System.Collections.Generic;
5-
using System.Management.Automation;
6-
using System.Management.Automation.Language;
7-
using System.Text;
8-
using System.Threading;
9-
using System.Threading.Tasks;
104
using Microsoft.Extensions.Logging;
115
using Microsoft.PowerShell.EditorServices.Services;
126
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
@@ -19,6 +13,12 @@
1913
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
2014
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
2115
using OmniSharp.Extensions.DebugAdapter.Protocol.Server;
16+
using System.Collections.Generic;
17+
using System.Management.Automation;
18+
using System.Management.Automation.Language;
19+
using System.Text;
20+
using System.Threading;
21+
using System.Threading.Tasks;
2222

2323
namespace Microsoft.PowerShell.EditorServices.Handlers
2424
{

src/PowerShellEditorServices/Services/DebugAdapter/Handlers/DisconnectHandler.cs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
using Microsoft.PowerShell.EditorServices.Server;
1111
using Microsoft.PowerShell.EditorServices.Services;
1212
using Microsoft.PowerShell.EditorServices.Services.PowerShell;
13-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
14-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
1513
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Runspace;
1614
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
1715

src/PowerShellEditorServices/Services/DebugAdapter/Handlers/LaunchAndAttachHandler.cs

-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.IO;
77
using System.Management.Automation;
8-
using System.Text;
98
using System.Threading;
109
using System.Threading.Tasks;
1110
using Microsoft.Extensions.Logging;
@@ -18,9 +17,7 @@
1817
using OmniSharp.Extensions.DebugAdapter.Protocol.Server;
1918
using Microsoft.PowerShell.EditorServices.Services.PowerShell;
2019
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Context;
21-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
2220
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Runspace;
23-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
2421

2522
namespace Microsoft.PowerShell.EditorServices.Handlers
2623
{

src/PowerShellEditorServices/Services/DebugAdapter/Handlers/SetVariableHandler.cs

-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22
// Licensed under the MIT License.
33

44
using System;
5-
using System.Linq;
65
using System.Management.Automation;
76
using System.Threading;
87
using System.Threading.Tasks;
98
using Microsoft.Extensions.Logging;
109
using Microsoft.PowerShell.EditorServices.Services;
1110
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
12-
using Microsoft.PowerShell.EditorServices.Utility;
13-
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
1411
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
1512
using OmniSharp.Extensions.JsonRpc;
1613

src/PowerShellEditorServices/Services/DebugAdapter/Handlers/VariablesHandler.cs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Microsoft.PowerShell.EditorServices.Services;
1010
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
1111
using Microsoft.PowerShell.EditorServices.Utility;
12-
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
1312
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
1413

1514
namespace Microsoft.PowerShell.EditorServices.Handlers

src/PowerShellEditorServices/Services/Extension/Handlers/InvokeExtensionCommandHandler.cs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Threading.Tasks;
66
using MediatR;
77
using Microsoft.Extensions.Logging;
8-
using Microsoft.PowerShell.EditorServices.Services;
98
using Microsoft.PowerShell.EditorServices.Extensions;
109

1110
namespace Microsoft.PowerShell.EditorServices.Services.Extension

src/PowerShellEditorServices/Services/PowerShell/Console/ColorConfiguration.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using System;
45

56
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Console
67
{

src/PowerShellEditorServices/Services/PowerShell/Console/ConsoleProxy.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
21
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
2+
// Licensed under the MIT license.
53

64
using System;
75
using System.Runtime.InteropServices;

src/PowerShellEditorServices/Services/PowerShell/Console/ConsoleReadLine.cs

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
1+
// Copyright (c) Microsoft. All rights reserved.
32
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
53

64
using System.Text;
75
using System.Threading;
6+
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
7+
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
8+
using System;
9+
using System.Collections.Generic;
10+
using System.Management.Automation;
11+
using System.Management.Automation.Language;
12+
using System.Security;
813

914
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Console
1015
{
11-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
12-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
13-
using System;
14-
using System.Collections.Generic;
15-
using System.Diagnostics;
16-
using System.Management.Automation;
17-
using System.Management.Automation.Language;
18-
using System.Security;
19-
2016
internal class ConsoleReadLine : IReadLine
2117
{
2218
private readonly PSReadLineProxy _psrlProxy;

src/PowerShellEditorServices/Services/PowerShell/Console/IConsoleOperations.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
21
// Copyright (c) Microsoft. All rights reserved.
32
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
53

64
using System;
75
using System.Threading;

src/PowerShellEditorServices/Services/PowerShell/Console/IReadLine.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
using System;
2-
using System.Collections.Generic;
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using System;
35
using System.Security;
4-
using System.Text;
56
using System.Threading;
6-
using System.Threading.Tasks;
77

88
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Console
99
{

src/PowerShellEditorServices/Services/PowerShell/Console/PSReadLineProxy.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
21
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
2+
// Licensed under the MIT license.
53

64
using System;
75
using System.IO;
@@ -16,7 +14,6 @@
1614

1715
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Console
1816
{
19-
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
2017
using System.Management.Automation.Runspaces;
2118

2219
internal class PSReadLineProxy

src/PowerShellEditorServices/Services/PowerShell/Console/ReadLineProvider.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using Microsoft.Extensions.Logging;
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using Microsoft.Extensions.Logging;
25

36
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Console
47
{

src/PowerShellEditorServices/Services/PowerShell/Console/UnixConsoleOperations.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
21
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
2+
// Licensed under the MIT license.
53

64
using System;
75
using System.Threading;

src/PowerShellEditorServices/Services/PowerShell/Console/WindowsConsoleOperations.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//
21
// Copyright (c) Microsoft. All rights reserved.
3-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4-
//
2+
// Licensed under the MIT license.
53

64
using System;
75
using System.Threading;

src/PowerShellEditorServices/Services/PowerShell/Context/PowerShellContextFrame.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
using Microsoft.Extensions.Logging;
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using Microsoft.Extensions.Logging;
25
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Runspace;
36
using System;
4-
using System.Threading;
57
using SMA = System.Management.Automation;
68

79
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Context

src/PowerShellEditorServices/Services/PowerShell/Context/PowerShellFrameType.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using System;
25

36
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Context
47
{

src/PowerShellEditorServices/Services/PowerShell/Context/PowerShellVersionDetails.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
// Licensed under the MIT License.
33

44
using Microsoft.Extensions.Logging;
5-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution;
5+
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Utility;
66
using System;
77
using System.Collections;
88
using System.Linq;
9-
using System.Threading.Tasks;
109

1110
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Context
1211
{
13-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Utility;
1412
using System.Management.Automation;
1513

1614
/// <summary>

src/PowerShellEditorServices/Services/PowerShell/Debugging/DebuggerResumingEventArgs.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Management.Automation;
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using System.Management.Automation;
25

36
namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Debugging
47
{

src/PowerShellEditorServices/Services/PowerShell/Debugging/DscBreakpointCapability.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
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-
//
1+
// Copyright (c) Microsoft. All rights reserved.
2+
// Licensed under the MIT license.
53

64
using System.Linq;
75
using System.Threading.Tasks;

0 commit comments

Comments
 (0)