Skip to content

Commit 2449543

Browse files
committed
Add missing copyright headers
1 parent 29d21a9 commit 2449543

File tree

23 files changed

+74
-9
lines changed

23 files changed

+74
-9
lines changed

build.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env pwsh
2+
3+
# Copyright (c) Microsoft Corporation.
4+
# Licensed under the MIT License.
5+
26
param(
37
[Parameter()]
48
[switch]
@@ -96,4 +100,4 @@ if ($Bootstrap) {
96100
if($Test) {
97101
Invoke-Build Test
98102
}
99-
}
103+
}

module/PowerShellEditorServices/Commands/Private/BuiltInCommands.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
Register-EditorCommand `
25
-Name 'PowerShellEditorServices.OpenEditorProfile' `
36
-DisplayName 'Open Editor Profile' `

module/PowerShellEditorServices/Start-EditorServices.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
<#
25
.SYNOPSIS
36
Starts the language and debug services from the PowerShellEditorServices module.

scripts/AddCopyrightHeaders.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Add-CopyrightHeaders($basePath)
2121
if ($fileContent.StartsWith($copyrightHeaderString) -eq $false)
2222
{
2323
# Add the copyright header to the file
24-
Set-Content $sourceFile.FullName ($copyrightHeaderString + "`r`n`r`n" + $fileContent)
24+
Set-Content $sourceFile.FullName ($copyrightHeaderString + [Environment]::NewLine + [Environment]::NewLine + $fileContent)
2525
Write-Output ("Updated {0}" -f (Resolve-Path $sourceFile.FullName -Relative))
2626
$global:updateCount++
2727
}

scripts/BuildDocs.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
param([switch]$Serve, [switch]$Clean, [switch]$Publish)
25

36
$toolsPath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\tools")

scripts/FetchLatestBuild.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
param($buildVersion = $null)
25

36
$releasePath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\release")

scripts/PackageSignedBinaries.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
# This script assumes the FetchBuildBinaries.ps1 has been run and
25
# the binaries in 'release\BinariesToSign' have been signed and
36
# replaced.

scripts/PublishPackages.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
13

24
$releasePath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\release")
35
$finalPackagePath = [System.IO.Path]::GetFullPath("$releasePath\FinalPackages")
@@ -15,8 +17,8 @@ foreach ($package in $packages) {
1517
}
1618
else
1719
{
18-
Write-Output "Pushed package $package.FullName"
20+
Write-Output "Pushed package $package.FullName"
1921
}
2022
}
2123

22-
# TODO: Use Find-Package to verify that the package is there?
24+
# TODO: Use Find-Package to verify that the package is there?

scripts/azurePipelinesBuild.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
$ErrorActionPreference = 'Stop'
25

36
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | Out-Null

src/PowerShellEditorServices.Hosting/GlobalSuppressions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// This file is used by Code Analysis to maintain SuppressMessage
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
// This file is used by Code Analysis to maintain SuppressMessage
25
// attributes that are applied to this project.
36
// Project-level suppressions either have no target or are given
47
// a specific target and scoped to a namespace, type, member, etc.

src/PowerShellEditorServices/Extensions/EditorCommandAttribute.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25

36
namespace Microsoft.PowerShell.EditorServices.Extensions

src/PowerShellEditorServices/GlobalSuppressions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// This file is used by Code Analysis to maintain SuppressMessage
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
// This file is used by Code Analysis to maintain SuppressMessage
25
// attributes that are applied to this project.
36
// Project-level suppressions either have no target or are given
47
// a specific target and scoped to a namespace, type, member, etc.

src/PowerShellEditorServices/Logging/HostLoggerAdapter.cs

Lines changed: 4 additions & 1 deletion
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
using System;
36
using System.Collections.Generic;
47
using System.Text;

src/PowerShellEditorServices/Services/TextDocument/SemanticToken.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System.Collections.Generic;
25
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
36

src/PowerShellEditorServices/Utility/LspDebugUtils.cs

Lines changed: 4 additions & 1 deletion
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
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
36
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
47

test/PowerShellEditorServices.Test.E2E/Processes/PsesStdioProcess.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Collections.Generic;
36
using System.Diagnostics;

test/PowerShellEditorServices.Test.E2E/Processes/ServerProcess.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.IO;
36
using System.Reactive.Subjects;

test/PowerShellEditorServices.Test.E2E/Processes/StdioServerProcess.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Diagnostics;
36
using System.IO;

test/PowerShellEditorServices.Test.Shared/TestUtilities/TestUtilities.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Diagnostics;
36
using System.IO;

test/PowerShellEditorServices.Test/Session/PathEscapingTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using Xunit;
25
using System.IO;
36
using Microsoft.PowerShell.EditorServices.Services;

tools/PsesLogAnalyzer/Analyze.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
<#
25
.SYNOPSIS
36
Gets LSP notification messages sent from either server to the client or vice-versa.

tools/PsesLogAnalyzer/Parse-PsesLog.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
13

24
$peekBuf = $null
35
$currentLineNum = 0

tools/PsesLogAnalyzer/Types.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
enum PsesLogLevel {
25
Diagnostic
36
Verbose
@@ -72,7 +75,7 @@ class PsesNotificationMessage {
7275
if (($this.Name -eq '$/cancelRequest') -and ($this.Data -ne $null)) {
7376
return "Name: $($this.Name) Source: $($this.Source), Id: $($this.Data.params.id)"
7477
}
75-
78+
7679
return "Name: $($this.Name) Source: $($this.Source), DataSize: $($this.DataSize)"
7780
}
7881
}

0 commit comments

Comments
 (0)