Skip to content

Commit 5bf41ce

Browse files
committed
Add copyright headers to new files
1 parent 692b0ac commit 5bf41ce

25 files changed

+190
-25
lines changed

src/PowerShellEditorServices.Host/DebugAdapter.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter;
27
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
38
using Microsoft.PowerShell.EditorServices.Utility;
49
using System;
@@ -372,3 +377,4 @@ await requestContext.SendResult(
372377
#endregion
373378
}
374379
}
380+

src/PowerShellEditorServices.Host/LanguageServer.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using DebugAdapterMessages = Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter;
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+
6+
using DebugAdapterMessages = Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter;
27
using Microsoft.PowerShell.EditorServices.Protocol.LanguageServer;
38
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
49
using Microsoft.PowerShell.EditorServices.Utility;
@@ -842,3 +847,4 @@ private static ParameterInformation CreateParameterInfo(ParameterInfo parameterI
842847
#endregion
843848
}
844849
}
850+

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/V8MessageSerializer.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27
using Newtonsoft.Json;
38
using Newtonsoft.Json.Linq;
49
using System;
@@ -104,3 +109,4 @@ public Message DeserializeMessage(JObject messageJson)
104109
}
105110
}
106111
}
112+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/ClientCapabilities.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using System;
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+
6+
using System;
27
using System.Collections.Generic;
38
using System.Linq;
49
using System.Text;
@@ -15,3 +20,4 @@ public class ClientCapabilities
1520
{
1621
}
1722
}
23+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/CompletionMessages.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27
using System;
38
using System.Collections.Generic;
49
using System.Linq;
@@ -72,3 +77,4 @@ public class CompletionItem
7277
public TextEdit TextEdit { get; set; }
7378
}
7479
}
80+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/Definition.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27

38
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
49
{
@@ -9,3 +14,4 @@ public static readonly
914
RequestType<TextDocumentPosition, Location[], object>.Create("textDocument/definition");
1015
}
1116
}
17+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/DiagnosticMessages.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27
using System;
38
using System.Collections.Generic;
49
using System.Linq;
@@ -68,3 +73,4 @@ public class Diagnostic
6873
public string Message { get; set; }
6974
}
7075
}
76+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/DocumentHighlight.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27

38
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
49
{
@@ -23,3 +28,4 @@ public static readonly
2328
RequestType<TextDocumentPosition, DocumentHighlight[], object>.Create("textDocument/documentHighlight");
2429
}
2530
}
31+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/Hover.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27
using System;
38
using System.Collections.Generic;
49
using System.Linq;
@@ -29,3 +34,4 @@ public static readonly
2934

3035
}
3136
}
37+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/InitializeMessages.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27

38
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
49
{
@@ -38,3 +43,4 @@ public class InitializeError
3843
public bool Retry { get; set;}
3944
}
4045
}
46+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/JsonRpcMessageSerializer.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27
using Newtonsoft.Json;
38
using Newtonsoft.Json.Linq;
49
using System;
@@ -100,3 +105,4 @@ public Message DeserializeMessage(JObject messageJson)
100105
}
101106

102107
}
108+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/References.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27

38
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
49
{
@@ -19,3 +24,4 @@ public class ReferencesOptions
1924
public bool IncludeDeclaration { get; set; }
2025
}
2126
}
27+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/ServerCapabilities.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27
using System;
38
using System.Collections.Generic;
49
using System.Linq;
@@ -58,3 +63,4 @@ public class SignatureHelpOptions
5863
public string[] TriggerCharacters { get; set; }
5964
}
6065
}
66+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/ShutdownMessages.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27

38
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
49
{
@@ -24,3 +29,4 @@ public static readonly
2429
EventType<object>.Create("exit");
2530
}
2631
}
32+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/SignatureHelp.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27

38
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
49
{
@@ -34,3 +39,4 @@ public class SignatureHelp
3439
public int? ActiveParameter { get; set; }
3540
}
3641
}
42+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/TextDocumentMessages.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27

38
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
49
{
@@ -124,3 +129,4 @@ public class FileEvent
124129
public FileChangeType Type { get; set; }
125130
}
126131
}
132+

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/WorkspaceSymbols.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
27

38
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
49
{
@@ -54,3 +59,4 @@ public class WorkspaceSymbolParams
5459
public string Query { get; set;}
5560
}
5661
}
62+

src/PowerShellEditorServices.Transport.Stdio/MessageProtocol/EventContext.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Newtonsoft.Json.Linq;
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+
6+
using Newtonsoft.Json.Linq;
27
using System.Threading.Tasks;
38

49
namespace Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol
@@ -20,3 +25,4 @@ await this.messageWriter.WriteEvent(
2025
}
2126
}
2227
}
28+

src/PowerShellEditorServices.Transport.Stdio/MessageProtocol/EventType.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using System;
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+
6+
using System;
27
using System.Collections.Generic;
38
using System.Linq;
49
using System.Text;
@@ -19,3 +24,4 @@ public static EventType<TParams> Create(string methodName)
1924
}
2025
}
2126
}
27+

src/PowerShellEditorServices.Transport.Stdio/MessageProtocol/IMessageSerializer.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Microsoft.PowerShell.EditorServices.Protocol.LanguageServer;
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+
6+
using Microsoft.PowerShell.EditorServices.Protocol.LanguageServer;
27
using Newtonsoft.Json.Linq;
38
using System;
49

@@ -11,3 +16,4 @@ public interface IMessageSerializer
1116
Message DeserializeMessage(JObject messageJson);
1217
}
1318
}
19+

src/PowerShellEditorServices.Transport.Stdio/MessageProtocol/Message.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Newtonsoft.Json.Linq;
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+
6+
using Newtonsoft.Json.Linq;
27
using System;
38
using System.Collections.Generic;
49
using System.Linq;
@@ -80,3 +85,4 @@ public static Message Event(string method, JToken contents)
8085
}
8186

8287
}
88+

src/PowerShellEditorServices.Transport.Stdio/MessageProtocol/MessageDispatcher.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using System;
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+
6+
using System;
27
using System.Collections.Generic;
38
using System.Threading.Tasks;
49

@@ -95,3 +100,4 @@ public async Task DispatchMessage(
95100
}
96101
}
97102
}
103+

src/PowerShellEditorServices.Transport.Stdio/MessageProtocol/RequestContext.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using Newtonsoft.Json.Linq;
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+
6+
using Newtonsoft.Json.Linq;
27
using System.Threading.Tasks;
38

49
namespace Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol
@@ -39,3 +44,4 @@ await this.messageWriter.WriteMessage(
3944
}
4045
}
4146
}
47+

src/PowerShellEditorServices.Transport.Stdio/MessageProtocol/RequestType.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using System;
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+
6+
using System;
27
using System.Collections.Generic;
38
using System.Linq;
49
using System.Text;
@@ -19,3 +24,4 @@ public static RequestType<TParams, TResult, TError> Create(string typeName)
1924
}
2025
}
2126
}
27+

0 commit comments

Comments
 (0)