Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static FocusNavigationDirection GetNavigationDirection(DependencyObject e
/// <summary>
/// Determines if the control key is pressed.
/// </summary>
/// <returns>True if a control is is pressed.</returns>
/// <returns>True if a control is pressed.</returns>
public static bool IsControlPressed()
{
if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void RevertTextAndChangeFromEditToDisplayMode()
private void ChangeFromEditToDisplayMode()
{
// NOTE : This is to resolve a race condition where clicking
// on the rename button causes the the edit box to change and
// on the rename button causes the edit box to change and
// then have re-toggle.
DependencyObject d = Mouse.DirectlyOver as DependencyObject;
if (d == null || !(this.renameButton.IsAncestorOf(d) && Mouse.LeftButton == MouseButtonState.Pressed))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public IDictionary<Type, DataTemplate> TemplateDictionary
}

/// <summary>
/// Selects a template based upon the type of the item and and the
/// Selects a template based upon the type of the item and the
/// corresponding template that is registered in the TemplateDictionary.
/// </summary>
/// <param name="item">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace Microsoft.PowerShell.Commands.Internal
{
/// <summary>
/// Implements thw WPF window part of the the ShowWindow option of get-help.
/// Implements thw WPF window part of the ShowWindow option of get-help.
/// </summary>
internal static class HelpWindowHelper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ private void Buttons_CopyClick(object sender, RoutedEventArgs e)
}

/// <summary>
/// Sets a succesfull dialog result and then closes the window.
/// Sets a successful dialog result and then closes the window.
/// </summary>
/// <param name="sender">Event sender.</param>
/// <param name="e">Event arguments.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ public class RemoveEventLogCommand : PSCmdlet

/// <summary>
/// The following is the definition of the input parameter "RemoveSource".
/// Specifies either to remove the event log and and associated source or
/// Specifies either to remove the event log and associated source or
/// source. alone.
/// When this parameter is not specified, the cmdlet uses Delete Method which
/// clears the eventlog and also the source associated with it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ protected override void ProcessRecord()
/// <param name="holder"></param>
/// <param name="currentContext"></param>
/// <returns>
/// true if no error occured
/// true if no error occurred
/// false if there was an error
/// </returns>
private bool ScanForwardsForTail(in ContentHolder holder, CmdletProviderContext currentContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected override void EndProcessing()
catch (ArgumentException)
{
// The first input string does not represent a complete Json Syntax.
// Hence consider the the entire input as a single Json content.
// Hence consider the entire input as a single Json content.
}

if (successfullyConverted)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static FileStream GetFileForJobDefinition(
}

/// <summary>
/// Checks the provided path against the the default path of scheduled jobs
/// Checks the provided path against the default path of scheduled jobs
/// for the current user.
/// </summary>
/// <param name="definitionPath">Path for scheduled job definitions.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.WSMan.Management/CurrentConfigurations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public bool RefreshCurrentConfiguration(string responseOfGet)
/// Issues a PUT request with the ResourceUri provided.
/// </summary>
/// <param name="resourceUri">Resource URI to use.</param>
/// <returns>False, if operation is not succesful.</returns>
/// <returns>False, if operation is not successful.</returns>
public void PutConfigurationOnServer(string resourceUri)
{
if (string.IsNullOrEmpty(resourceUri))
Expand Down
4 changes: 2 additions & 2 deletions src/Schemas/PSMaml/Maml_HTML_Style.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
</xsl:when>
<xsl:otherwise>
<!-- the default vertical alignment depends on whether
this cell is the the table header, footer or body -->
this cell is the table header, footer or body -->
<xsl:choose>
<xsl:when test='parent::*/parent::thead'>
bottom
Expand Down Expand Up @@ -381,4 +381,4 @@

</xsl:choose>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace System.Management.Automation.Runspaces
{
/// <summary>
/// This exception is used by Formattable constructor to indicate errors
/// occured during construction time.
/// occurred during construction time.
/// </summary>
[Serializable]
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "FormatTable")]
Expand Down Expand Up @@ -70,7 +70,7 @@ public FormatTableLoadException(string message, Exception innerException)
/// time.
/// </summary>
/// <param name="loadErrors">
/// The errors that occured
/// The errors that occurred.
/// </param>
internal FormatTableLoadException(ConcurrentBag<string> loadErrors)
: base(StringUtil.Format(FormatAndOutXmlLoadingStrings.FormatTableLoadErrors))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private void WriteProperty(int k, string propertyValue, LineOutput lo)
/// </summary>
/// <param name="prependString">String to add to the left.</param>
/// <param name="line">Line to print.</param>
/// <param name="lo">LineOuput to write to.</param>
/// <param name="lo">LineOutput to write to.</param>
private void WriteSingleLineHelper(string prependString, string line, LineOutput lo)
{
if (line is null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ private static string GenerateRowField(string val, int width, int alignment, Dis
if (currentValueDisplayLength < width)
{
// the string is shorter than the width of the column
// need to pad with with blanks to reach the desired width
// need to pad with blanks to reach the desired width
int padCount = width - currentValueDisplayLength;
switch (alignment)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ internal static void InitVariantForObject(object obj, ref Variant variant)
Debug.Assert(obj != null);

// GetNativeVariantForObject is very expensive for values that marshal as VT_DISPATCH
// also is is extremely common scenario when object at hand is an RCW.
// also is extremely common scenario when object at hand is an RCW.
// Therefore we are going to test for IDispatch before defaulting to GetNativeVariantForObject.
if (obj is IDispatch)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private static List<VarEnum> GetConversionsToComPrimitiveTypeFamilies(Type argum
if (TypeUtils.IsImplicitlyConvertible(argumentType, candidateManagedType, true))
{
compatibleComTypes.Add(candidateType);
// Move on to the next type family. We need atmost one type from each family
// Move on to the next type family. We need at most one type from each family
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ internal IEnumerator<CmdletInfo> GetCmdletInfo(string cmdletName, bool searchAll
}
// The engine cmdlets get imported (via Import-Module) once when PowerShell starts and the cmdletInfo is added to PSSnapinHelpers._cmdletcache(static) with ModuleName
// as "System.Management.Automation.dll" instead of the actual snapin name. The next time we load something in an InitialSessionState, we look at this _cmdletcache and
// if the the assembly is already loaded, we just return the cmdlets back. So, the CmdletInfo has moduleName has "System.Management.Automation.dll". So, when M3P Activity
// if the assembly is already loaded, we just return the cmdlets back. So, the CmdletInfo has moduleName has "System.Management.Automation.dll". So, when M3P Activity
// tries to access Microsoft.PowerShell.Core\\Get-Command, it cannot. So, adding an additional check to return the correct cmdletInfo for cmdlets from core modules.
else if (InitialSessionState.IsEngineModule(cmdletInfo.ModuleName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public bool MoveNext()
}
else
{
// Ok see it it's in the applications list
// Ok, see if it's in the applications list
foreach (string path in _context.EngineSessionState.Applications)
{
if (checkPath(path, _commandName))
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/CoreAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5940,7 +5940,7 @@ private static MethodInfo Infer(MethodInfo genericMethod, ICollection<Type> type
try
{
MethodInfo instantiatedMethod = genericMethod.MakeGenericMethod(inferredTypeParameters.ToArray());
s_tracer.WriteLine("Inference succesful: {0}", instantiatedMethod);
s_tracer.WriteLine("Inference successful: {0}", instantiatedMethod);
return instantiatedMethod;
}
catch (ArgumentException e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ internal override bool ImplementsDynamicParameters

// If we got here, there was some sort of parsing exception. We'll just
// ignore it and assume the script does not implement dynamic parameters.
// Futhermore, we'll clear out the fields so that the next attempt to
// Furthermore, we'll clear out the fields so that the next attempt to
// access ScriptBlock will result in an exception that doesn't get ignored.
_scriptBlock = null;
_scriptContents = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ internal void SetVersion(Version version)
public ModuleType ModuleType { get; private set; } = ModuleType.Script;

/// <summary>
/// This this module as being a compiled module...
/// This module as being a compiled module...
/// </summary>
internal void SetModuleType(ModuleType moduleType) { ModuleType = moduleType; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ private bool UseSpecialArgumentPassing(string filePath) =>
/// <param name="redirectOutput">A boolean that indicates that, when true, output from the process is redirected to a stream, and otherwise is sent to stdout.</param>
/// <param name="redirectError">A boolean that indicates that, when true, error output from the process is redirected to a stream, and otherwise is sent to stderr.</param>
/// <param name="redirectInput">A boolean that indicates that, when true, input to the process is taken from a stream, and otherwise is taken from stdin.</param>
/// <param name="soloCommand">A boolean that indicates, when true, that the command to be executed is not part of a pipeline, and otherwise indicates that is is.</param>
/// <param name="soloCommand">A boolean that indicates, when true, that the command to be executed is not part of a pipeline, and otherwise indicates that it is.</param>
/// <returns>A ProcessStartInfo object which is the base of the native invocation.</returns>
private ProcessStartInfo GetProcessStartInfo(
bool redirectOutput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Microsoft.PowerShell.Commands.Management
{
/// <summary>
/// Represents a a string that can be used in transactions.
/// Represents a string that can be used in transactions.
/// </summary>
public class TransactedString : IEnlistmentNotification
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ protected RunspaceState RunspaceState
}

/// <summary>
/// This is queue of all the state change event which have occured for
/// This is queue of all the state change event which have occurred for
/// this runspace. RaiseRunspaceStateEvents raises event for each
/// item in this queue. We don't raise events from with SetRunspaceState
/// because SetRunspaceState is often called from with in the a lock.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ void ProcessRecord()
);
} while (false);

// If we are here, an error has occured.
// If we are here, an error has occurred.
Exception ex =
new InvalidDataException
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ private void DoCloseHelper()
return runspaces;
});

// Notify Engine components that that runspace is closing.
// Notify Engine components that runspace is closing.
_engine.Context.RunspaceClosingNotification();

// Log engine lifecycle event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private VistaCultureInfo ImmediateParent
}
}

// There is atleast 1 duplicate in m_fallbacks which was not added to
// There is at least 1 duplicate in m_fallbacks which was not added to
// fallbacksForTheParent array. Resize the array to take care of this.
if (_fallbacks.Length != currentIndex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ internal void InternalAddRange(Guid psInstanceId, ICollection collection)
{
InsertItem(psInstanceId, _data.Count, (T)o);

// set raise events if atleast one item is
// set raise events if at least one item is
// added.
raiseEvents = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4351,7 +4351,7 @@ internal void SetStateChanged(PSInvocationStateInfo stateInfo)
}
finally
{
// takes care exception occured with invokeAsyncResult
// takes care exception occurred with invokeAsyncResult
if (isExceptionOccured && (tempStopAsyncResult != null))
{
tempStopAsyncResult.Release();
Expand Down Expand Up @@ -4402,7 +4402,7 @@ internal void SetStateChanged(PSInvocationStateInfo stateInfo)
}
finally
{
// takes care exception occured with invokeAsyncResult
// takes care exception occurred with invokeAsyncResult
if (isExceptionOccured && (tempStopAsyncResult != null))
{
tempStopAsyncResult.Release();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ protected void DestroyRunspace(Runspace runspace)
/// <summary>
/// Cleans the pool closing the runspaces that are idle.
/// This method is called as part of a timer callback.
/// This method will make sure atleast minPoolSz number
/// This method will make sure at least minPoolSz number
/// of Runspaces are active.
/// </summary>
/// <param name="state"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ protected bool IsPipelineFinished()
}

/// <summary>
/// This is queue of all the state change event which have occured for
/// This is queue of all the state change event which have occurred for
/// this pipeline. RaisePipelineStateEvents raises event for each
/// item in this queue. We don't raise the event with in SetPipelineState
/// because often SetPipelineState is called with in a lock.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public override int Run(InterpretedFrame frame)
frame.PopPendingContinuation();

// If _pendingContinuation == -1 then we were getting into the finally block because an exception was thrown
// In this case we just return 1, and the the real instruction index will be calculated by GotoHandler later
// In this case we just return 1, and the real instruction index will be calculated by GotoHandler later
if (!frame.IsJumpHappened()) { return 1; }
// jump to goto target or to the next finally:
return frame.YieldToPendingContinuation();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ internal T InvokeAsMemberFunctionT<T>(object instance, object[] args)
// is a pipeline that emits nothing then result.Count will
// be zero so we catch that and "convert" it to null. Note that
// the return statement is still required in the method, it
// just recieves nothing from it's argument.
// just receives nothing from it's argument.
if (result.Count == 0)
{
return default(T);
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/parser/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5226,7 +5226,7 @@ private StatementAst MethodDeclarationRule(Token functionNameToken, string class
SkipToken();
// we don't allow syntax
// : base{ script }
// as a short for for
// as a short for
// : base( { script } )
baseCtorCallParams = InvokeParamParenListRule(lParen, out baseCallLastExtent);
this.SkipNewlines();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2360,7 +2360,7 @@ private void SetStatusMessage()

#region finish logic

// This variable is set to true if atleast one child job failed.
// This variable is set to true if at least one child job failed.
private bool _atleastOneChildJobFailed = false;

// count of number of child jobs which have finished
Expand Down Expand Up @@ -3926,7 +3926,7 @@ public override void SetBreakpoints(IEnumerable<Breakpoint> breakpoints, int? ru
/// </summary>
/// <param name="id">Id of the breakpoint you want.</param>
/// <param name="runspaceId">The runspace id of the runspace you want to interact with. A null value will use the current runspace.</param>
/// <returns>A a breakpoint with the specified id.</returns>
/// <returns>A breakpoint with the specified id.</returns>
public override Breakpoint GetBreakpoint(int id, int? runspaceId) =>
_wrappedDebugger.GetBreakpoint(id, runspaceId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public sealed class ContainerParentJob : Job2

private const int DisposedTrue = 1;
private const int DisposedFalse = 0;
// This variable is set to true if atleast one child job failed.
// This variable is set to true if at least one child job failed.

// count of number of child jobs which have finished
private int _finishedChildJobsCount = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ internal ClientRemoteSessionDSHandlerStateMachine()
_stateMachineHandle[(int)RemoteSessionState.EstablishedAndKeyRequested, (int)RemoteSessionEvent.KeySendFailed] += SetStateToClosedHandler;

// TODO: All these are potential unexpected state transitions.. should have a way to track these calls..
// should atleast put a dbg assert in this handler
// should at least put a dbg assert in this handler
for (int i = 0; i < _stateMachineHandle.GetLength(0); i++)
{
for (int j = 0; j < _stateMachineHandle.GetLength(1); j++)
Expand Down
Loading