From 29d21a9b4727f8aba1bca38f4d33f3a9f545d05f Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 28 Apr 2021 16:48:26 -0700 Subject: [PATCH 1/2] Remove "All Rights Reserved" from copyright notices Per Microsoft policy at: https://docs.opensource.microsoft.com/content/releasing/copyright-headers.html All copyright notices no longer include "All Rights Reserved" and the comment style has been updated to be consistent with policy. --- .devcontainer/Dockerfile | 6 ++---- .vscode/snippets.code-snippets | 6 ++---- PowerShellEditorServices.Common.props | 2 +- PowerShellEditorServices.build.ps1 | 6 ++---- docs/template/conceptual.html.primary.tmpl | 2 +- docs/template/partials/class.tmpl.partial | 2 +- docs/template/partials/footer.tmpl.partial | 2 +- docs/template/partials/head.tmpl.partial | 4 ++-- docs/template/partials/namespace.tmpl.partial | 2 +- docs/template/partials/navbar.tmpl.partial | 2 +- .../PowerShellEditorServices.VSCode.psd1 | 2 +- .../PowerShellEditorServices.Commands.psd1 | 2 +- .../PowerShellEditorServices.Commands.psm1 | 6 ++---- .../Commands/Public/Clear-Host.ps1 | 6 ++---- .../Commands/Public/CmdletInterface.ps1 | 6 ++---- .../Commands/Public/ConvertFrom-ScriptExtent.ps1 | 6 ++---- .../Commands/Public/ConvertTo-ScriptExtent.ps1 | 6 ++---- .../Commands/Public/Find-Ast.ps1 | 6 ++---- .../Commands/Public/Get-Token.ps1 | 6 ++---- .../Commands/Public/Import-EditorCommand.ps1 | 6 ++---- .../Commands/Public/Join-ScriptExtent.ps1 | 6 ++---- .../Commands/Public/Out-CurrentFile.ps1 | 6 ++---- .../Commands/Public/Set-ScriptExtent.ps1 | 6 ++---- .../Commands/Public/Test-ScriptExtent.ps1 | 6 ++---- scripts/AddCopyrightHeaders.ps1 | 12 ++++-------- .../Commands/InvokeReadLineConstructorCommand.cs | 6 ++---- .../InvokeReadLineForEditorServicesCommand.cs | 6 ++---- .../Commands/StartEditorServicesCommand.cs | 6 ++---- .../Configuration/EditorServicesConfig.cs | 6 ++---- .../Configuration/HostInfo.cs | 6 ++---- .../Configuration/HostLogger.cs | 6 ++---- .../Configuration/SessionFileWriter.cs | 6 ++---- .../Configuration/TransportConfig.cs | 6 ++---- .../EditorServicesLoader.cs | 6 ++---- .../Internal/EditorServicesRunner.cs | 6 ++---- .../Internal/NamedPipeUtils.cs | 6 ++---- .../Internal/PsesLoadContext.cs | 6 ++---- .../Cmdlets/VSCodeHtmlContentViewCommands.cs | 6 ++---- .../CustomViews/CustomViewBase.cs | 6 ++---- .../CustomViews/CustomViewFeature.cs | 6 ++---- .../CustomViews/CustomViewMessages.cs | 6 ++---- .../CustomViews/CustomViewType.cs | 6 ++---- .../CustomViews/HtmlContent.cs | 6 ++---- .../CustomViews/HtmlContentView.cs | 6 ++---- .../CustomViews/HtmlContentViewMessages.cs | 6 ++---- .../CustomViews/HtmlContentViewsFeature.cs | 6 ++---- .../CustomViews/ICustomView.cs | 6 ++---- .../CustomViews/IHtmlContentView.cs | 6 ++---- .../CustomViews/IHtmlContentViews.cs | 6 ++---- .../CustomViews/ViewColumn.cs | 6 ++---- .../Extensions/Api/DocumentSymbolService.cs | 6 ++---- .../Extensions/Api/EditorContextService.cs | 6 ++---- .../Api/EditorExtensionServiceProvider.cs | 6 ++---- .../Extensions/Api/EditorUIService.cs | 6 ++---- .../Extensions/Api/ExtensionCommandService.cs | 6 ++---- .../Extensions/Api/LanguageServerService.cs | 6 ++---- .../Extensions/Api/WorkspaceService.cs | 6 ++---- .../Extensions/EditorCommand.cs | 6 ++---- .../Extensions/EditorContext.cs | 6 ++---- .../Extensions/EditorFileRanges.cs | 6 ++---- .../Extensions/EditorObject.cs | 6 ++---- .../Extensions/EditorRequests.cs | 6 ++---- .../Extensions/EditorTerminal.cs | 6 ++---- .../Extensions/EditorWindow.cs | 6 ++---- .../Extensions/EditorWorkspace.cs | 6 ++---- .../Extensions/FileContext.cs | 6 ++---- .../Extensions/IEditorOperations.cs | 6 ++---- .../Hosting/EditorServicesLoading.cs | 6 ++---- .../Hosting/EditorServicesServerFactory.cs | 6 ++---- .../Hosting/HostStartupInfo.cs | 6 ++---- .../Logging/LoggerExtensions.cs | 6 ++---- .../Logging/PsesTelemetryEvent.cs | 6 ++---- .../Server/PsesDebugServer.cs | 6 ++---- .../Server/PsesLanguageServer.cs | 6 ++---- .../Server/PsesServiceCollectionExtensions.cs | 6 ++---- .../Services/Analysis/AnalysisService.cs | 6 ++---- .../Analysis/PssaCmdletAnalysisEngine.cs | 6 ++---- .../Services/CodeLens/CodeLensData.cs | 6 ++---- .../Services/CodeLens/ICodeLensProvider.cs | 6 ++---- .../Services/CodeLens/PesterCodeLensProvider.cs | 6 ++---- .../CodeLens/ReferencesCodeLensProvider.cs | 6 ++---- .../Services/DebugAdapter/BreakpointService.cs | 6 ++---- .../DebugAdapter/DebugEventHandlerService.cs | 6 ++---- .../Services/DebugAdapter/DebugService.cs | 6 ++---- .../Services/DebugAdapter/DebugStateService.cs | 6 ++---- .../DebugAdapter/Debugging/BreakpointApiUtils.cs | 6 ++---- .../DebugAdapter/Debugging/BreakpointDetails.cs | 6 ++---- .../Debugging/BreakpointDetailsBase.cs | 6 ++---- .../Debugging/CommandBreakpointDetails.cs | 6 ++---- .../Debugging/DebuggerStoppedEventArgs.cs | 6 ++---- .../InvalidPowerShellExpressionException.cs | 6 ++---- .../DebugAdapter/Debugging/StackFrameDetails.cs | 6 ++---- .../Debugging/VariableContainerDetails.cs | 6 ++---- .../DebugAdapter/Debugging/VariableDetails.cs | 6 ++---- .../Debugging/VariableDetailsBase.cs | 6 ++---- .../DebugAdapter/Debugging/VariableScope.cs | 6 ++---- .../DebugAdapter/Handlers/BreakpointHandlers.cs | 6 ++---- .../Handlers/ConfigurationDoneHandler.cs | 6 ++---- .../Handlers/DebugEvaluateHandler.cs | 6 ++---- .../Handlers/DebuggerActionHandlers.cs | 6 ++---- .../DebugAdapter/Handlers/DisconnectHandler.cs | 6 ++---- .../Handlers/LaunchAndAttachHandler.cs | 6 ++---- .../DebugAdapter/Handlers/ScopesHandler.cs | 6 ++---- .../DebugAdapter/Handlers/SetVariableHandler.cs | 6 ++---- .../DebugAdapter/Handlers/SourceHandler.cs | 6 ++---- .../DebugAdapter/Handlers/StackTraceHandler.cs | 6 ++---- .../DebugAdapter/Handlers/ThreadsHandler.cs | 6 ++---- .../DebugAdapter/Handlers/VariablesHandler.cs | 6 ++---- .../PowerShellContext/Console/ChoiceDetails.cs | 6 ++---- .../Console/ChoicePromptHandler.cs | 6 ++---- .../Console/CollectionFieldDetails.cs | 6 ++---- .../Console/ConsoleChoicePromptHandler.cs | 6 ++---- .../Console/ConsoleInputPromptHandler.cs | 6 ++---- .../PowerShellContext/Console/ConsoleProxy.cs | 6 ++---- .../PowerShellContext/Console/ConsoleReadLine.cs | 6 ++---- .../Console/CredentialFieldDetails.cs | 6 ++---- .../PowerShellContext/Console/FieldDetails.cs | 6 ++---- .../Console/IConsoleOperations.cs | 6 ++---- .../Console/InputPromptHandler.cs | 6 ++---- .../PowerShellContext/Console/PromptHandler.cs | 6 ++---- .../Console/TerminalChoicePromptHandler.cs | 6 ++---- .../Console/TerminalInputPromptHandler.cs | 6 ++---- .../Console/UnixConsoleOperations.cs | 6 ++---- .../Console/WindowsConsoleOperations.cs | 6 ++---- .../PowerShellContext/EditorOperationsService.cs | 6 ++---- .../PowerShellContext/ExtensionService.cs | 6 ++---- .../Handlers/EvaluateHandler.cs | 6 ++---- .../Handlers/ExpandAliasHandler.cs | 6 ++---- .../Handlers/GetCommandHandler.cs | 6 ++---- .../Handlers/GetCommentHelpHandler.cs | 6 ++---- .../Handlers/GetVersionHandler.cs | 6 ++---- .../Handlers/IEvaluateHandler.cs | 6 ++---- .../Handlers/IGetCommentHelpHandler.cs | 6 ++---- .../Handlers/IGetPSHostProcessesHandler.cs | 6 ++---- .../Handlers/IGetRunspaceHandler.cs | 6 ++---- .../Handlers/IGetVersionHandler.cs | 6 ++---- .../Handlers/IInvokeExtensionCommandHandler.cs | 6 ++---- .../Handlers/ITemplateHandlers.cs | 6 ++---- .../Handlers/InvokeExtensionCommandHandler.cs | 6 ++---- .../Handlers/PSHostProcessAndRunspaceHandlers.cs | 6 ++---- .../Handlers/ShowHelpHandler.cs | 6 ++---- .../Handlers/TemplateHandlers.cs | 6 ++---- .../PowerShellContextService.cs | 6 ++---- .../RemoteFileManagerService.cs | 6 ++---- .../Capabilities/DscBreakpointCapability.cs | 6 ++---- .../Session/ExecutionOptions.cs | 6 ++---- .../PowerShellContext/Session/ExecutionStatus.cs | 6 ++---- .../Session/ExecutionStatusChangedEventArgs.cs | 6 ++---- .../PowerShellContext/Session/ExecutionTarget.cs | 6 ++---- .../Session/Host/EditorServicesPSHost.cs | 6 ++---- .../Host/EditorServicesPSHostUserInterface.cs | 6 ++---- .../PowerShellContext/Session/Host/IHostInput.cs | 6 ++---- .../Session/Host/IHostOutput.cs | 6 ++---- .../Session/Host/PromptEvents.cs | 6 ++---- .../Session/Host/PromptHandlers.cs | 6 ++---- .../Session/Host/ProtocolPSHostUserInterface.cs | 6 ++---- .../Session/Host/SimplePSHostRawUserInterface.cs | 6 ++---- .../Host/TerminalPSHostRawUserInterface.cs | 6 ++---- .../Session/Host/TerminalPSHostUserInterface.cs | 6 ++---- .../PowerShellContext/Session/IPromptContext.cs | 6 ++---- .../Session/IRunspaceCapability.cs | 6 ++---- .../Session/IVersionSpecificOperations.cs | 6 ++---- .../Session/InvocationEventQueue.cs | 6 ++---- .../Session/LegacyReadLineContext.cs | 6 ++---- .../PowerShellContext/Session/OutputType.cs | 6 ++---- .../Session/OutputWrittenEventArgs.cs | 6 ++---- .../Session/PSReadLinePromptContext.cs | 6 ++---- .../PowerShellContext/Session/PSReadLineProxy.cs | 6 ++---- .../Session/PipelineExecutionRequest.cs | 6 ++---- .../Session/PowerShell5Operations.cs | 6 ++---- .../Session/PowerShellContextState.cs | 6 ++---- .../Session/PowerShellExecutionResult.cs | 6 ++---- .../Session/PowerShellVersionDetails.cs | 6 ++---- .../PowerShellContext/Session/ProgressDetails.cs | 6 ++---- .../PowerShellContext/Session/PromptNest.cs | 6 ++---- .../PowerShellContext/Session/PromptNestFrame.cs | 6 ++---- .../Session/PromptNestFrameType.cs | 6 ++---- .../Session/RunspaceChangedEventArgs.cs | 6 ++---- .../PowerShellContext/Session/RunspaceDetails.cs | 6 ++---- .../PowerShellContext/Session/RunspaceHandle.cs | 6 ++---- .../PowerShellContext/Session/SessionDetails.cs | 6 ++---- .../Session/SessionStateChangedEventArgs.cs | 6 ++---- .../Session/ThreadController.cs | 6 ++---- .../PowerShellContext/TemplateService.cs | 6 ++---- .../Utilities/CommandHelpers.cs | 6 ++---- .../Services/Symbols/IDocumentSymbolProvider.cs | 6 ++---- .../Services/Symbols/ParameterSetSignatures.cs | 6 ++---- .../Symbols/PesterDocumentSymbolProvider.cs | 6 ++---- .../Symbols/PsdDocumentSymbolProvider.cs | 6 ++---- .../Symbols/ScriptDocumentSymbolProvider.cs | 6 ++---- .../Services/Symbols/ScriptExtent.cs | 6 ++---- .../Services/Symbols/SymbolDetails.cs | 6 ++---- .../Services/Symbols/SymbolReference.cs | 6 ++---- .../Services/Symbols/SymbolType.cs | 6 ++---- .../Services/Symbols/SymbolsService.cs | 6 ++---- .../Services/Symbols/Vistors/AstOperations.cs | 6 ++---- .../Symbols/Vistors/FindCommandVisitor.cs | 6 ++---- .../Symbols/Vistors/FindDeclarationVisitor.cs | 6 ++---- .../Symbols/Vistors/FindDotSourcedVisitor.cs | 6 ++---- .../Symbols/Vistors/FindReferencesVisitor.cs | 6 ++---- .../Symbols/Vistors/FindSymbolVisitor.cs | 6 ++---- .../Symbols/Vistors/FindSymbolsVisitor.cs | 6 ++---- .../Symbols/Vistors/FindSymbolsVisitor2.cs | 6 ++---- .../Services/TextDocument/BufferPosition.cs | 6 ++---- .../Services/TextDocument/BufferRange.cs | 6 ++---- .../Services/TextDocument/CompletionResults.cs | 6 ++---- .../Services/TextDocument/FileChange.cs | 6 ++---- .../Services/TextDocument/FilePosition.cs | 6 ++---- .../Services/TextDocument/FoldingReference.cs | 6 ++---- .../TextDocument/Handlers/CodeActionHandler.cs | 6 ++---- .../TextDocument/Handlers/CodeLensHandlers.cs | 6 ++---- .../TextDocument/Handlers/CompletionHandler.cs | 6 ++---- .../TextDocument/Handlers/DefinitionHandler.cs | 6 ++---- .../Handlers/DocumentHighlightHandler.cs | 6 ++---- .../Handlers/DocumentSymbolHandler.cs | 6 ++---- .../TextDocument/Handlers/FoldingRangeHandler.cs | 6 ++---- .../TextDocument/Handlers/FormattingHandlers.cs | 6 ++---- .../TextDocument/Handlers/HoverHandler.cs | 6 ++---- .../Handlers/PsesSemanticTokensHandler.cs | 6 ++---- .../TextDocument/Handlers/ReferencesHandler.cs | 6 ++---- .../Handlers/SignatureHelpHandler.cs | 6 ++---- .../TextDocument/Handlers/TextDocumentHandler.cs | 6 ++---- .../Services/TextDocument/ScriptFile.cs | 6 ++---- .../Services/TextDocument/ScriptFileMarker.cs | 6 ++---- .../Services/TextDocument/ScriptRegion.cs | 6 ++---- .../Services/TextDocument/TokenOperations.cs | 6 ++---- .../Services/Workspace/ConfigurationService.cs | 6 ++---- .../Workspace/Handlers/ConfigurationHandler.cs | 6 ++---- .../Handlers/WorkspaceSymbolsHandler.cs | 6 ++---- .../Services/Workspace/LanguageServerSettings.cs | 6 ++---- .../Workspace/WorkspaceFileSystemWrapper.cs | 6 ++---- .../Services/Workspace/WorkspaceService.cs | 6 ++---- .../Utility/AsyncLock.cs | 6 ++---- .../Utility/AsyncQueue.cs | 6 ++---- .../Utility/AsyncUtils.cs | 6 ++---- .../Utility/Extensions.cs | 6 ++---- .../Utility/IScriptExtentExtensions.cs | 6 ++---- src/PowerShellEditorServices/Utility/LspUtils.cs | 6 ++---- .../Utility/PSCommandExtensions.cs | 6 ++---- .../Utility/PathUtils.cs | 6 ++---- src/PowerShellEditorServices/Utility/Validate.cs | 16 +++++++--------- .../Utility/VersionUtils.cs | 6 ++---- .../DebugAdapterClientExtensions.cs | 6 ++---- .../DebugAdapterProtocolMessageTests.cs | 6 ++---- .../LSPTestsFixures.cs | 6 ++---- .../LanguageServerProtocolMessageTests.cs | 6 ++---- .../Completion/CompleteAttributeValue.cs | 6 ++---- .../Completion/CompleteCommandFromModule.cs | 6 ++---- .../Completion/CompleteCommandInFile.cs | 6 ++---- .../Completion/CompleteFilePath.cs | 6 ++---- .../Completion/CompleteNamespace.cs | 6 ++---- .../Completion/CompleteTypeName.cs | 6 ++---- .../Completion/CompleteVariableInFile.cs | 6 ++---- .../Definition/FindsDotSourcedFile.cs | 6 ++---- .../Definition/FindsFunctionDefinition.cs | 6 ++---- ...indsFunctionDefinitionInDotSourceReference.cs | 6 ++---- .../FindsFunctionDefinitionInWorkspace.cs | 6 ++---- .../Definition/FindsVariableDefinition.cs | 6 ++---- .../Occurrences/FindOccurrencesOnParameter.cs | 6 ++---- .../Occurrences/FindsOccurrencesOnFunction.cs | 6 ++---- .../FindsParameterSetsOnCommand.cs | 6 ++---- .../FindsParameterSetsOnCommandWithSpaces.cs | 6 ++---- .../FindsReferencesOnBuiltInCommandWithAlias.cs | 6 ++---- .../References/FindsReferencesOnFunction.cs | 6 ++---- ...indsReferencesOnFunctionMultiFileDotSource.cs | 6 ++---- .../References/FindsReferencesonVariable.cs | 6 ++---- .../FindsDetailsForBuiltInCommand.cs | 6 ++---- .../Symbols/FindSymbolsInMultiSymbolFile.cs | 6 ++---- .../Symbols/FindSymbolsInNoSymbolsFile.cs | 6 ++---- .../Symbols/FindSymbolsInPSDFile.cs | 6 ++---- .../Symbols/FindSymbolsInPesterFile.cs | 6 ++---- .../AssemblyInfo.cs | 6 ++---- .../Console/ChoicePromptHandlerTests.cs | 6 ++---- .../Console/InputPromptHandlerTests.cs | 6 ++---- .../Debugging/DebugServiceTests.cs | 8 +++----- .../Extensions/ExtensionCommandTests.cs | 6 ++---- .../Language/LanguageServiceTests.cs | 6 ++---- .../Language/SemanticTokenTest.cs | 6 ++---- .../Language/TokenOperationsTests.cs | 6 ++---- .../PowerShellContextFactory.cs | 6 ++---- .../Services/Symbols/AstOperationsTests.cs | 6 ++---- .../Session/PowerShellContextTests.cs | 6 ++---- .../Session/ScriptFileTests.cs | 6 ++---- .../Session/WorkspaceTests.cs | 6 ++---- .../Utility/AsyncLockTests.cs | 6 ++---- .../Utility/AsyncQueueTests.cs | 6 ++---- .../Utility/VersionUtilsTests.cs | 6 ++---- tools/PsesLogAnalyzer/PsesLogAnalyzer.psd1 | 2 +- 288 files changed, 575 insertions(+), 1133 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 6aadb3186..e9ece8067 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,7 +1,5 @@ -#------------------------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -#------------------------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. FROM mcr.microsoft.com/dotnet/core/sdk:2.1.802 diff --git a/.vscode/snippets.code-snippets b/.vscode/snippets.code-snippets index bd69dc17a..a6a15fa0b 100644 --- a/.vscode/snippets.code-snippets +++ b/.vscode/snippets.code-snippets @@ -30,10 +30,8 @@ "Copyright header": { "prefix": "CopyrightHeader", "body": [ - "//", - "// Copyright (c) Microsoft. All rights reserved.", - "// Licensed under the MIT license. See LICENSE file in the project root for full license information.", - "//" + "// Copyright (c) Microsoft Corporation.", + "// Licensed under the MIT License." ], "description": "Copyright header" } diff --git a/PowerShellEditorServices.Common.props b/PowerShellEditorServices.Common.props index 4a95d4e5a..09fb64bba 100644 --- a/PowerShellEditorServices.Common.props +++ b/PowerShellEditorServices.Common.props @@ -3,7 +3,7 @@ 2.4.1 preview.1 Microsoft - © Microsoft Corporation. All rights reserved. + © Microsoft Corporation. 9.0 PowerShell;editor;development;language;debugging https://raw.githubusercontent.com/PowerShell/PowerShellEditorServices/master/LICENSE diff --git a/PowerShellEditorServices.build.ps1 b/PowerShellEditorServices.build.ps1 index fea03e618..d0b4a7844 100644 --- a/PowerShellEditorServices.build.ps1 +++ b/PowerShellEditorServices.build.ps1 @@ -1,7 +1,5 @@ -# -# Copyright (c) Microsoft. All rights reserved. -# Licensed under the MIT license. See LICENSE file in the project root for full license information. -# +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. param( [ValidateSet("Debug", "Release")] diff --git a/docs/template/conceptual.html.primary.tmpl b/docs/template/conceptual.html.primary.tmpl index bea049317..c2a035f17 100644 --- a/docs/template/conceptual.html.primary.tmpl +++ b/docs/template/conceptual.html.primary.tmpl @@ -1,4 +1,4 @@ -{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}} +{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}} {{!include(/^styles/.*/)}} {{!include(/^fonts/.*/)}} {{!include(favicon.ico)}} diff --git a/docs/template/partials/class.tmpl.partial b/docs/template/partials/class.tmpl.partial index c898239f6..b103082b4 100644 --- a/docs/template/partials/class.tmpl.partial +++ b/docs/template/partials/class.tmpl.partial @@ -1,4 +1,4 @@ -{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}} +{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}} {{^_disableContribution}} {{#docurl}}{{__global.improveThisDoc}}{{/docurl}} diff --git a/docs/template/partials/footer.tmpl.partial b/docs/template/partials/footer.tmpl.partial index 47254342c..0dd1e2dfd 100644 --- a/docs/template/partials/footer.tmpl.partial +++ b/docs/template/partials/footer.tmpl.partial @@ -1,4 +1,4 @@ -{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}} +{{!Copyright (c) Microsoft Corporation. Licensed under the MIT License.}}