man I can't spel

This commit is contained in:
Mike Griese 2021-01-26 11:51:06 -06:00
parent f02969b70f
commit b2db3170dd
8 changed files with 12 additions and 11 deletions

View file

@ -13,3 +13,4 @@ fixterms
uk
winui
appshellintegration
cppreference

View file

@ -129,7 +129,7 @@ namespace winrt::Microsoft::Terminal::Remoting::implementation
const auto newLastActiveTime = args.ActivatedTime().time_since_epoch().count();
// For now, we'll just pay attention to whoever the most recent peasant
// was. We're not too wooried about the mru peasant dying. Worst case -
// was. We're not too worried about the mru peasant dying. Worst case -
// when the user executes a `wt -w 0`, we won't be able to find that
// peasant, and it'll open in a new window instead of the current one.
if (args.ActivatedTime() > _lastActivatedTime)

View file

@ -13,7 +13,7 @@ namespace Microsoft.Terminal.Remoting
[default_interface] runtimeclass ProposeCommandlineResult {
Windows.Foundation.IReference<UInt64> Id { get; };
// TOOD:projects/5 - also return the name here, if the name was set on the commandline
// TODO:projects/5 - also return the name here, if the name was set on the commandline
Boolean ShouldCreateWindow { get; }; // If you name this `CreateWindow`, the compiler will explode
}

View file

@ -167,7 +167,7 @@ namespace winrt::Microsoft::Terminal::Remoting::implementation
}
// Here, we're the king!
//
// This is where you should do any aditional setup that might need to be
// This is where you should do any additional setup that might need to be
// done when we become the king. THis will be called both for the first
// window, and when the current monarch dies.
@ -327,7 +327,7 @@ namespace winrt::Microsoft::Terminal::Remoting::implementation
// _performElection call will throw, and we wouldn't catch it
// here, and we'd die.
// Instead, we're going to have a resilent election process.
// Instead, we're going to have a resilient election process.
// We're going to keep trying an election, until one _doesn't_
// throw an exception. That might mean burning through all the
// other dying monarchs until we find us as the monarch. But if

View file

@ -1162,7 +1162,7 @@ namespace winrt::TerminalApp::implementation
// CWD.
// Arguments:
// - args: an array of strings to process as a commandline. These args can contain spaces
// - cwd: The directory to use as the CWD while performing thse actions.
// - cwd: The directory to use as the CWD while performing these actions.
// Return Value:
// - the result of the first command who's parsing returned a non-zero code,
// or 0. (see AppLogic::_ParseArgs)
@ -1217,13 +1217,13 @@ namespace winrt::TerminalApp::implementation
}
// Any unsuccessful parse will be a new window. That new window will try
// to handle the commandline iteslf, and find that the commandline
// to handle the commandline itself, and find that the commandline
// failed to parse. When that happens, the new window will display the
// message box.
//
// This will also work for the case where the user specifies an invalid
// commandline in conjunction with `-w 0`. This function will determine
// that the commandline hasa parse error, and indicate that we should
// that the commandline has a parse error, and indicate that we should
// create a new window. Then, in that new window, we'll try to set the
// StartupActions, which will again fail, returning the correct error
// message.

View file

@ -375,7 +375,7 @@ namespace winrt::TerminalApp::implementation
std::wstring originalCwd{ wil::GetCurrentDirectoryW<std::wstring>() };
auto restoreCwd = wil::scope_exit([&originalCwd]() {
// ignore errors, we'll just power on through. We'd rather do
// something rather than fail silently if the direcotry doesn't
// something rather than fail silently if the directory doesn't
// actually exist.
LOG_IF_WIN32_BOOL_FALSE(SetCurrentDirectory(originalCwd.c_str()));
});
@ -386,7 +386,7 @@ namespace winrt::TerminalApp::implementation
else
{
// ignore errors, we'll just power on through. We'd rather do
// something rather than fail silently if the direcotry doesn't
// something rather than fail silently if the directory doesn't
// actually exist.
LOG_IF_WIN32_BOOL_FALSE(SetCurrentDirectory(cwd.c_str()));
}

View file

@ -538,7 +538,7 @@ void AppHost::_DispatchCommandline(winrt::Windows::Foundation::IInspectable /*se
// manager will ask us how to figure out what the target window is for a set
// of commandline arguments. We'll take those arguments, and ask AppLogic to
// parse them for us. We'll then set ResultTargetWindow in the given args, so
// the sender can use that reuslt.
// the sender can use that result.
// Arguments:
// - args: the bundle of a commandline and working directory to find the correct target window for.
// Return Value:

View file

@ -127,7 +127,7 @@ int __stdcall wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
if (!host.HasWindow())
{
// If we were told to not have a window, exit early. Make sure to use
// ExitProcess to commit sepuku here. If you try just `return 0`, then
// ExitProcess to die here. If you try just `return 0`, then
// the XAML app host will crash during teardown. ExitProcess avoids
// that.
ExitProcess(0);