From ceda3cfac4d17fefcb0304f8502d292d3446f0cb Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 28 Aug 2016 06:47:18 +0000 Subject: [PATCH] spelling: debug... --- .../Bootstrap/BootstrapRequest.cs | 2 +- .../PowerShellProviderBase.cs | 2 +- .../Implementation/PackageSourceRequestObject.cs | 2 +- .../HelpWindow/ParagraphSearcher.cs | 8 ++++---- .../ManagementList/ManagementList/InnerListGridView.cs | 2 +- .../RestartComputerActivity.cs | 2 +- src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs | 4 ++-- .../FileInstanceStore/WorkflowAdditionalStores.cs | 10 +++++----- .../engine/interpreter/ControlFlowInstructions.cs | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Microsoft.PackageManagement.CoreProviders/Bootstrap/BootstrapRequest.cs b/src/Microsoft.PackageManagement.CoreProviders/Bootstrap/BootstrapRequest.cs index 2eecbcde1..3c21f8402 100644 --- a/src/Microsoft.PackageManagement.CoreProviders/Bootstrap/BootstrapRequest.cs +++ b/src/Microsoft.PackageManagement.CoreProviders/Bootstrap/BootstrapRequest.cs @@ -330,7 +330,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap { private bool ValidateFileHash(string fileFullPath, Payload payload) { - Debug("BoostrapRequest::ValidateFileHash"); + Debug("BootstrapRequest::ValidateFileHash"); /* format: * * diff --git a/src/Microsoft.PackageManagement.MetaProvider.PowerShell/PowerShellProviderBase.cs b/src/Microsoft.PackageManagement.MetaProvider.PowerShell/PowerShellProviderBase.cs index 425fb42ea..fee863288 100644 --- a/src/Microsoft.PackageManagement.MetaProvider.PowerShell/PowerShellProviderBase.cs +++ b/src/Microsoft.PackageManagement.MetaProvider.PowerShell/PowerShellProviderBase.cs @@ -189,7 +189,7 @@ namespace Microsoft.PackageManagement.MetaProvider.PowerShell.Internal { // we're going to throw an error here because this indicates that the currently // running powershell call is calling back into PM, and it has called back // into this provider. That's just bad bad bad. - throw new Exception("Re-entrancy Violation in powershell module"); + throw new Exception("Reentrancy Violation in powershell module"); } try { diff --git a/src/Microsoft.PackageManagement/Implementation/PackageSourceRequestObject.cs b/src/Microsoft.PackageManagement/Implementation/PackageSourceRequestObject.cs index 13472d9d6..8f0e7d163 100644 --- a/src/Microsoft.PackageManagement/Implementation/PackageSourceRequestObject.cs +++ b/src/Microsoft.PackageManagement/Implementation/PackageSourceRequestObject.cs @@ -36,7 +36,7 @@ namespace Microsoft.PackageManagement.Internal.Implementation { } public override bool YieldPackageSource(string name, string location, bool isTrusted, bool isRegistered, bool isValidated) { - Debug(String.Format(CultureInfo.CurrentCulture, "Yielding packge source for {0} at location {1}", name, location)); + Debug(String.Format(CultureInfo.CurrentCulture, "Yielding package source for {0} at location {1}", name, location)); Activity(); CommitPackageSource(); diff --git a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphSearcher.cs b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphSearcher.cs index b86e5b603..6c2705035 100644 --- a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphSearcher.cs +++ b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphSearcher.cs @@ -49,8 +49,8 @@ namespace Microsoft.Management.UI.Internal /// the next highlight starting at the internal Run MoveAndHighlightNextNextMatch(bool forward, TextPointer caretPosition) { - Debug.Assert(caretPosition != null, "a caret position is allways valid"); - Debug.Assert(caretPosition.Parent != null && caretPosition.Parent is Run, "a caret PArent is allways a valid Run"); + Debug.Assert(caretPosition != null, "a caret position is always valid"); + Debug.Assert(caretPosition.Parent != null && caretPosition.Parent is Run, "a caret Parent is always a valid Run"); Run caretRun = (Run)caretPosition.Parent; Run currentRun; @@ -203,7 +203,7 @@ namespace Microsoft.Management.UI.Internal { Bold parentBold = run.Parent as Bold; Paragraph parentParagraph = (parentBold != null ? parentBold.Parent : run.Parent) as Paragraph; - Debug.Assert(parentParagraph != null, "the documents we are saerching are built with ParagraphBuilder, which builds the document like this"); + Debug.Assert(parentParagraph != null, "the documents we are searching are built with ParagraphBuilder, which builds the document like this"); return parentParagraph; } @@ -227,7 +227,7 @@ namespace Microsoft.Management.UI.Internal /// the first or last run in the paragraph containing private static Run GetFirstOrLastRun(Run caretRun, bool forward) { - Debug.Assert(caretRun != null, "a caret run is allways valid"); + Debug.Assert(caretRun != null, "a caret run is always valid"); Paragraph paragraph = GetParagraph(caretRun); diff --git a/src/Microsoft.PowerShell.GraphicalHost/ManagementList/ManagementList/InnerListGridView.cs b/src/Microsoft.PowerShell.GraphicalHost/ManagementList/ManagementList/InnerListGridView.cs index 3f39f15be..e38ab9371 100644 --- a/src/Microsoft.PowerShell.GraphicalHost/ManagementList/ManagementList/InnerListGridView.cs +++ b/src/Microsoft.PowerShell.GraphicalHost/ManagementList/ManagementList/InnerListGridView.cs @@ -130,7 +130,7 @@ namespace Microsoft.Management.UI.Internal return; } - Debug.Assert(this.AvailableColumns.Count == 0, "AvailabeColumns should be empty at this point"); + Debug.Assert(this.AvailableColumns.Count == 0, "AvailableColumns should be empty at this point"); PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(first); foreach (PropertyDescriptor property in properties) diff --git a/src/Microsoft.PowerShell.Management.Activities/RestartComputerActivity.cs b/src/Microsoft.PowerShell.Management.Activities/RestartComputerActivity.cs index 7ac1f8080..79fcaf2cc 100644 --- a/src/Microsoft.PowerShell.Management.Activities/RestartComputerActivity.cs +++ b/src/Microsoft.PowerShell.Management.Activities/RestartComputerActivity.cs @@ -442,7 +442,7 @@ namespace Microsoft.PowerShell.Management.Activities return; } - _structuredTracer.DebugMessage("Executing activity '" + this.DisplayName + "', local machine (" + Environment.MachineName + ") is self-restaring"); + _structuredTracer.DebugMessage("Executing activity '" + this.DisplayName + "', local machine (" + Environment.MachineName + ") is self-restarting"); base.Execute(context); } } diff --git a/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs b/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs index f9d1b7cc7..fdadc62cb 100644 --- a/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs +++ b/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs @@ -443,7 +443,7 @@ namespace Microsoft.PowerShell.Internal { int err = Marshal.GetLastWin32Error(); Win32Exception innerException = new Win32Exception(err); - throw new Exception("Failed to retreive the input console handle.", innerException); + throw new Exception("Failed to retrieve the input console handle.", innerException); } return new SafeFileHandle(handle, true); @@ -466,7 +466,7 @@ namespace Microsoft.PowerShell.Internal { int err = Marshal.GetLastWin32Error(); Win32Exception innerException = new Win32Exception(err); - throw new Exception("Failed to retreive the input console handle.", innerException); + throw new Exception("Failed to retrieve the input console handle.", innerException); } return new SafeFileHandle(handle, true); diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/WorkflowAdditionalStores.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/WorkflowAdditionalStores.cs index 807062b90..f81d3faf0 100644 --- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/WorkflowAdditionalStores.cs +++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/WorkflowAdditionalStores.cs @@ -623,7 +623,7 @@ namespace Microsoft.PowerShell.Workflow private long LoadSerializedMetadata(object data) { - Debug.Assert(data.GetType() == typeof (PSWorkflowContext), "The data should be of type worklfow metadata"); + Debug.Assert(data.GetType() == typeof (PSWorkflowContext), "The data should be of type workflow metadata"); PSWorkflowContext metadata = (PSWorkflowContext) data; this.serializedWorkflowParameters = Encrypt(SerializeObject(metadata.WorkflowParameters)); @@ -757,7 +757,7 @@ namespace Microsoft.PowerShell.Workflow private ArraySegment serializedRequiredAssemblies; private long LoadSerializedDefinition(object data) { - Debug.Assert(data.GetType() == typeof (PSWorkflowDefinition), "The data should be of type worklfow definition"); + Debug.Assert(data.GetType() == typeof (PSWorkflowDefinition), "The data should be of type workflow definition"); PSWorkflowDefinition definition = (PSWorkflowDefinition) data; string WorkflowXaml = definition.WorkflowXaml; @@ -782,7 +782,7 @@ namespace Microsoft.PowerShell.Workflow private void SaveSerializedDefinition(object data) { - Debug.Assert(data.GetType() == typeof (PSWorkflowDefinition), "The data should be of type worklfow definition"); + Debug.Assert(data.GetType() == typeof (PSWorkflowDefinition), "The data should be of type workflow definition"); PSWorkflowDefinition definition = (PSWorkflowDefinition) data; if (firstTimeStoringDefinition) @@ -1826,7 +1826,7 @@ namespace Microsoft.PowerShell.Workflow CreateAndEnsureInstancePath(Metadatas, out storePath); Debug.Assert(component.GetType() == typeof(PSWorkflowContext), - "The data should be of type worklfow metadata"); + "The data should be of type workflow metadata"); PSWorkflowContext metadata = (PSWorkflowContext)component; totalBytesWritten += SerializeAndSaveToFile(metadata.WorkflowParameters, Path.Combine(storePath, Input_xml)); @@ -1841,7 +1841,7 @@ namespace Microsoft.PowerShell.Workflow if (firstTimeStoringDefinition) { Debug.Assert(component.GetType() == typeof(PSWorkflowDefinition), - "The data should be of type worklfow definition"); + "The data should be of type workflow definition"); PSWorkflowDefinition definition = (PSWorkflowDefinition)component; // there is no serialization involved, just storing xamls and reference diff --git a/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs b/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs index 9d0e5fa32..242d50161 100644 --- a/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs +++ b/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs @@ -361,7 +361,7 @@ namespace System.Management.Automation.Interpreter if (index == _tryHandler.GotoEndTargetIndex) { // run the 'Goto' that jumps out of the try/catch/finally blocks - Debug.Assert(instructions[index] is GotoInstruction, "should be the 'Goto' instruction that jumpes out the try/catch/finally"); + Debug.Assert(instructions[index] is GotoInstruction, "should be the 'Goto' instruction that jumps out the try/catch/finally"); frame.InstructionIndex += instructions[index].Run(frame); } } @@ -404,7 +404,7 @@ namespace System.Management.Automation.Interpreter if (index == _tryHandler.GotoEndTargetIndex) { // run the 'Goto' that jumps out of the try/catch/finally blocks - Debug.Assert(instructions[index] is GotoInstruction, "should be the 'Goto' instruction that jumpes out the try/catch/finally"); + Debug.Assert(instructions[index] is GotoInstruction, "should be the 'Goto' instruction that jumps out the try/catch/finally"); frame.InstructionIndex += instructions[index].Run(frame); } }