diff --git a/src/modules/launcher/Microsoft.Launcher/dllmain.cpp b/src/modules/launcher/Microsoft.Launcher/dllmain.cpp index 3245949e12..f62281214b 100644 --- a/src/modules/launcher/Microsoft.Launcher/dllmain.cpp +++ b/src/modules/launcher/Microsoft.Launcher/dllmain.cpp @@ -70,7 +70,7 @@ public: } // Return array of the names of all events that this powertoy listens for, with - // nullptr as the last element of the array. Nullptr can also be retured for empty + // nullptr as the last element of the array. Nullptr can also be returned for empty // list. virtual const wchar_t** get_events() override { static const wchar_t* events[] = { nullptr }; diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs index 0f07c5d64f..48e6103f04 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs @@ -221,7 +221,7 @@ namespace Microsoft.Plugin.Folder throw; } - // Intial ordering, this order can be updated later by UpdateResultView.MainViewModel based on history of user selection. + // Initial ordering, this order can be updated later by UpdateResultView.MainViewModel based on history of user selection. return results.Concat(folderList.OrderBy(x => x.Title)).Concat(fileList.OrderBy(x => x.Title)).ToList(); } diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs index 3b5ae7c6a3..b397d92dd5 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs @@ -207,7 +207,7 @@ namespace Microsoft.Plugin.Program void InitializeTimer() { - //multiple file writes occur on install / unistall. Adding a delay before actually indexing. + //multiple file writes occur on install / uninstall. Adding a delay before actually indexing. var delayInterval = 5000; _timer = new System.Timers.Timer(delayInterval); _timer.Enabled = true; diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Views/Commands/ProgramSettingDisplay.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Views/Commands/ProgramSettingDisplay.cs index 41aa3f2202..3285722da4 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Views/Commands/ProgramSettingDisplay.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Views/Commands/ProgramSettingDisplay.cs @@ -28,7 +28,7 @@ namespace Microsoft.Plugin.Program.Views.Commands Main._settings .DisabledProgramSources .Where(t1 => !Main._settings - .ProgramSources // program sourcces added above already, so exlcude + .ProgramSources // program sources added above already, so exclude .Any(x => t1.UniqueIdentifier == x.UniqueIdentifier)) .Select(x => x) .ToList() diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/FuzzyMatching.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/FuzzyMatching.cs index 62cbc61cad..13eb3ed845 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/FuzzyMatching.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/FuzzyMatching.cs @@ -14,7 +14,7 @@ namespace Microsoft.Plugin.WindowWalker.Components { /// /// Finds the best match (the one with the most - /// number of letters adjecent to each other) and + /// number of letters adjacent to each other) and /// returns the index location of each of the letters /// of the matches /// @@ -67,7 +67,7 @@ namespace Microsoft.Plugin.WindowWalker.Components /// Gets all the possible matches to the search string with in the text /// /// a table showing the matches as generated by - /// a two dimentional array with the first dimention the text and the second + /// a two dimensional array with the first dimension the text and the second /// one the search string and each cell marked as an intersection between the two /// a list of the possible combinations that match the search text public static List> GetAllMatchIndexes(bool[,] matches) diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/LivePreview.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/LivePreview.cs index 13685f890d..d7d056d8d1 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/LivePreview.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/LivePreview.cs @@ -7,7 +7,7 @@ using System; namespace Microsoft.Plugin.WindowWalker.Components { /// - /// Class containg methods to control the live preview + /// Class containing methods to control the live preview /// internal class LivePreview { diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/OpenWindows.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/OpenWindows.cs index 7340eac8f6..46e6f5fa64 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/OpenWindows.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/OpenWindows.cs @@ -85,7 +85,7 @@ namespace Microsoft.Plugin.WindowWalker.Components /// The handle to the current window being enumerated /// Value being passed from the caller (we don't use this but might come in handy /// in the future - /// true to make sure to contiue enumeration + /// true to make sure to continue enumeration public bool WindowEnumerationCallBack(IntPtr hwnd, IntPtr lParam) { Window newWindow = new Window(hwnd); diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/Window.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/Window.cs index 4f5d8e11c1..ce29a1c04a 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/Window.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/Window.cs @@ -302,7 +302,7 @@ namespace Microsoft.Plugin.WindowWalker.Components } /// - /// Switches dekstop focus to the window + /// Switches desktop focus to the window /// public void SwitchToWindow() { diff --git a/src/modules/launcher/PowerLauncher/App.xaml.cs b/src/modules/launcher/PowerLauncher/App.xaml.cs index f996f62995..2248360f9b 100644 --- a/src/modules/launcher/PowerLauncher/App.xaml.cs +++ b/src/modules/launcher/PowerLauncher/App.xaml.cs @@ -84,7 +84,7 @@ namespace PowerLauncher // load plugin before change language, because plugin language also needs be changed InternationalizationManager.Instance.Settings = _settings; InternationalizationManager.Instance.ChangeLanguage(_settings.Language); - // main windows needs initialized before theme change because of blur settigns + // main windows needs initialized before theme change because of blur settings ThemeManager.Instance.Settings = _settings; ThemeManager.Instance.ChangeTheme(_settings.Theme); @@ -102,7 +102,7 @@ namespace PowerLauncher PowerToysTelemetry.Log.WriteEvent(new LauncherBootEvent() { BootTimeMs = bootTime.ElapsedMilliseconds }); //[Conditional("RELEASE")] - // check udpate every 5 hours + // check update every 5 hours // check updates on startup }); diff --git a/src/modules/launcher/PowerLauncher/Themes/Base.xaml b/src/modules/launcher/PowerLauncher/Themes/Base.xaml index ae195feaa4..2955c7e624 100644 --- a/src/modules/launcher/PowerLauncher/Themes/Base.xaml +++ b/src/modules/launcher/PowerLauncher/Themes/Base.xaml @@ -85,7 +85,7 @@ Margin="{TemplateBinding Padding}" Grid.Row="0" /> - + directories) { - // todo use linq when diable plugin is implmented since parallel.foreach + list is not thread saft + // todo use linq when diable plugin is implemented since parallel.foreach + list is not thread saft foreach (var directory in directories) { if (File.Exists(Path.Combine(directory, "NeedDelete.txt"))) diff --git a/src/modules/launcher/Wox.Core/Plugin/PluginInstaller.cs b/src/modules/launcher/Wox.Core/Plugin/PluginInstaller.cs index ffdb0aa758..24043fdd03 100644 --- a/src/modules/launcher/Wox.Core/Plugin/PluginInstaller.cs +++ b/src/modules/launcher/Wox.Core/Plugin/PluginInstaller.cs @@ -74,8 +74,8 @@ namespace Wox.Core.Plugin UnZip(path, newPluginPath, true); Directory.Delete(tempFoler, true); - //exsiting plugins may be has loaded by application, - //if we try to delelte those kind of plugins, we will get a error that indicate the + //existing plugins could be loaded by the application, + //if we try to delete those kind of plugins, we will get a error that indicate the //file is been used now. //current solution is to restart wox. Ugly. //if (MainWindow.Initialized) @@ -148,7 +148,7 @@ namespace Wox.Core.Plugin /// /// The ziped file. /// The STR directory. - /// overwirte + /// overwrite private static void UnZip(string zipedFile, string strDirectory, bool overWrite) { if (strDirectory == "") diff --git a/src/modules/launcher/Wox.Core/Plugin/PluginManager.cs b/src/modules/launcher/Wox.Core/Plugin/PluginManager.cs index 0d007715eb..cdc2ec38b9 100644 --- a/src/modules/launcher/Wox.Core/Plugin/PluginManager.cs +++ b/src/modules/launcher/Wox.Core/Plugin/PluginManager.cs @@ -29,7 +29,7 @@ namespace Wox.Core.Plugin public static IPublicAPI API { private set; get; } - // todo happlebao, this should not be public, the indicator function should be embeded + // todo happlebao, this should not be public, the indicator function should be embedded public static PluginsSettings Settings; private static List _metadatas; private static readonly string[] Directories = { Constant.PreinstalledDirectory, Constant.PluginsDirectory }; diff --git a/src/modules/launcher/Wox.Core/Resource/Theme.cs b/src/modules/launcher/Wox.Core/Resource/Theme.cs index 4b8c37ccfd..d0e75ac73d 100644 --- a/src/modules/launcher/Wox.Core/Resource/Theme.cs +++ b/src/modules/launcher/Wox.Core/Resource/Theme.cs @@ -213,7 +213,7 @@ namespace Wox.Core.Resource public void SetBlurForWindow() { - // Exception of FindResource can't be cathed if global exception handle is set + // Exception of FindResource can't be caught if global exception handle is set if (Environment.OSVersion.Version >= new Version(6, 2)) { var resource = Application.Current.TryFindResource("ThemeBlurEnabled"); diff --git a/src/modules/launcher/Wox.Infrastructure/Alphabet.cs b/src/modules/launcher/Wox.Infrastructure/Alphabet.cs index 4754394cbc..33f180b8c0 100644 --- a/src/modules/launcher/Wox.Infrastructure/Alphabet.cs +++ b/src/modules/launcher/Wox.Infrastructure/Alphabet.cs @@ -106,12 +106,12 @@ namespace Wox.Infrastructure return pinyin; } - /// + /// /// replace chinese character with pinyin, non chinese character won't be modified - /// Because we don't have words dictionary, so we can only return all possiblie pinyin combination + /// Because we don't have words dictionary, so we can only return all possibly pinyin combination /// e.g. 音乐 will return yinyue and yinle /// should be word or sentence, instead of single character. e.g. 微软 - /// + /// public string[][] PinyinCombination(string characters) { if (!_settings.ShouldUsePinyin || string.IsNullOrEmpty(characters)) diff --git a/src/modules/launcher/Wox.Infrastructure/Storage/BinaryStorage.cs b/src/modules/launcher/Wox.Infrastructure/Storage/BinaryStorage.cs index d2c5a2da82..2382710abf 100644 --- a/src/modules/launcher/Wox.Infrastructure/Storage/BinaryStorage.cs +++ b/src/modules/launcher/Wox.Infrastructure/Storage/BinaryStorage.cs @@ -9,7 +9,7 @@ using Wox.Infrastructure.Logger; namespace Wox.Infrastructure.Storage { /// - /// Stroage object using binary data + /// Storage object using binary data /// Normally, it has better performance, but not readable /// public class BinaryStorage diff --git a/src/modules/launcher/Wox.Infrastructure/Storage/ISavable.cs b/src/modules/launcher/Wox.Infrastructure/Storage/ISavable.cs index 67e4aa721b..4ff1e3d2f0 100644 --- a/src/modules/launcher/Wox.Infrastructure/Storage/ISavable.cs +++ b/src/modules/launcher/Wox.Infrastructure/Storage/ISavable.cs @@ -2,7 +2,7 @@ { /// /// Save plugin settings/cache, - /// todo should be merged into a abstract class intead of seperate interface + /// todo should be merged into a abstract class instead of separate interface /// public interface ISavable { diff --git a/src/modules/launcher/Wox.Infrastructure/Storage/PluginJsonStorage.cs b/src/modules/launcher/Wox.Infrastructure/Storage/PluginJsonStorage.cs index 27de500c72..80345748fe 100644 --- a/src/modules/launcher/Wox.Infrastructure/Storage/PluginJsonStorage.cs +++ b/src/modules/launcher/Wox.Infrastructure/Storage/PluginJsonStorage.cs @@ -6,7 +6,7 @@ namespace Wox.Infrastructure.Storage { public PluginJsonStorage() { - // C# releated, add python releated below + // C# related, add python related below var dataType = typeof(T); var assemblyName = typeof(T).Assembly.GetName().Name; DirectoryPath = Path.Combine(Constant.DataDirectory, DirectoryName, Constant.Plugins, assemblyName); diff --git a/src/modules/launcher/Wox.Infrastructure/StringMatcher.cs b/src/modules/launcher/Wox.Infrastructure/StringMatcher.cs index fd64c4391c..05904feee7 100644 --- a/src/modules/launcher/Wox.Infrastructure/StringMatcher.cs +++ b/src/modules/launcher/Wox.Infrastructure/StringMatcher.cs @@ -304,13 +304,13 @@ namespace Wox.Infrastructure public class MatchOption { /// - /// prefix of match char, use for hightlight + /// prefix of match char, use for highlight /// [Obsolete("this is never used")] public string Prefix { get; set; } = ""; /// - /// suffix of match char, use for hightlight + /// suffix of match char, use for highlight /// [Obsolete("this is never used")] public string Suffix { get; set; } = ""; diff --git a/src/modules/launcher/Wox.Plugin/IPublicAPI.cs b/src/modules/launcher/Wox.Plugin/IPublicAPI.cs index 72e400e26e..b0e10f5eee 100644 --- a/src/modules/launcher/Wox.Plugin/IPublicAPI.cs +++ b/src/modules/launcher/Wox.Plugin/IPublicAPI.cs @@ -64,7 +64,7 @@ namespace Wox.Plugin /// /// Reloads any Plugins that have the - /// IReloadable implemented. It refeshes + /// IReloadable implemented. It refreshes /// Plugin's in memory data with new content /// added by user. /// diff --git a/src/modules/launcher/Wox.Plugin/Query.cs b/src/modules/launcher/Wox.Plugin/Query.cs index 07b640ab85..46ea32bfda 100644 --- a/src/modules/launcher/Wox.Plugin/Query.cs +++ b/src/modules/launcher/Wox.Plugin/Query.cs @@ -43,7 +43,7 @@ namespace Wox.Plugin /// public const string TermSeperater = " "; /// - /// User can set multiple action keywords seperated by ';' + /// User can set multiple action keywords separated by ';' /// public const string ActionKeywordSeperater = ";"; diff --git a/src/modules/launcher/Wox.Plugin/Result.cs b/src/modules/launcher/Wox.Plugin/Result.cs index d1f49b142e..717ea50dfc 100644 --- a/src/modules/launcher/Wox.Plugin/Result.cs +++ b/src/modules/launcher/Wox.Plugin/Result.cs @@ -62,7 +62,7 @@ namespace Wox.Plugin public IList SubTitleHighlightData { get; set; } /// - /// Only resulsts that originQuery match with curren query will be displayed in the panel + /// Only results that originQuery match with current query will be displayed in the panel /// internal Query OriginQuery { get; set; } diff --git a/src/modules/launcher/Wox/App.xaml.cs b/src/modules/launcher/Wox/App.xaml.cs index 8a8dc80d8d..4ee71d6759 100644 --- a/src/modules/launcher/Wox/App.xaml.cs +++ b/src/modules/launcher/Wox/App.xaml.cs @@ -73,7 +73,7 @@ namespace Wox // load plugin before change language, because plugin language also needs be changed InternationalizationManager.Instance.Settings = _settings; InternationalizationManager.Instance.ChangeLanguage(_settings.Language); - // main windows needs initialized before theme change because of blur settigns + // main windows needs initialized before theme change because of blur settings ThemeManager.Instance.Settings = _settings; ThemeManager.Instance.ChangeTheme(_settings.Theme); diff --git a/src/modules/launcher/Wox/Helper/DWMDropShadow.cs b/src/modules/launcher/Wox/Helper/DWMDropShadow.cs index a998f75a1d..7d5a91e9e3 100644 --- a/src/modules/launcher/Wox/Helper/DWMDropShadow.cs +++ b/src/modules/launcher/Wox/Helper/DWMDropShadow.cs @@ -18,7 +18,7 @@ namespace Wox.Helper /// /// Drops a standard shadow to a WPF Window, even if the window isborderless. Only works with DWM (Vista and Seven). /// This method is much more efficient than setting AllowsTransparency to true and using the DropShadow effect, - /// as AllowsTransparency involves a huge permormance issue (hardware acceleration is turned off for all the window). + /// as AllowsTransparency involves a huge performance issue (hardware acceleration is turned off for all the window). /// /// Window to which the shadow will be applied public static void DropShadowToWindow(Window window) diff --git a/src/modules/launcher/Wox/Helper/SingleInstance.cs b/src/modules/launcher/Wox/Helper/SingleInstance.cs index 4b933eedfe..4b692970a7 100644 --- a/src/modules/launcher/Wox/Helper/SingleInstance.cs +++ b/src/modules/launcher/Wox/Helper/SingleInstance.cs @@ -14,7 +14,7 @@ using System.Windows; using System.Windows.Threading; // http://blogs.microsoft.co.il/arik/2010/05/28/wpf-single-instance-application/ -// modified to allow single instace restart +// modified to allow single instance restart namespace Wox.Helper { internal enum WM @@ -284,7 +284,7 @@ namespace Wox.Helper { // The application was clickonce deployed - // Clickonce deployed apps cannot recieve traditional commandline arguments + // Clickonce deployed apps cannot receive traditional commandline arguments // As a workaround commandline arguments can be written to a shared location before // the app is launched and the app can obtain its commandline arguments from the // shared location @@ -335,7 +335,7 @@ namespace Wox.Helper // Do an asynchronous call to ActivateFirstInstance function Application.Current.Dispatcher.Invoke(ActivateFirstInstance); } - // Disconect client + // Disconnect client pipeServer.Disconnect(); } } diff --git a/src/modules/launcher/Wox/Themes/Base.xaml b/src/modules/launcher/Wox/Themes/Base.xaml index ae195feaa4..2955c7e624 100644 --- a/src/modules/launcher/Wox/Themes/Base.xaml +++ b/src/modules/launcher/Wox/Themes/Base.xaml @@ -85,7 +85,7 @@ Margin="{TemplateBinding Padding}" Grid.Row="0" /> - + /// we need move cursor to end when we manually changed query /// but we don't want to move cursor to end when query is updated from TextBox. - /// Also we don't want to force the results to change unless explicity told to. + /// Also we don't want to force the results to change unless explicitly told to. /// /// /// Optional Parameter that if true, will automatically execute a query against the updated text diff --git a/src/modules/launcher/Wox/ViewModel/ResultViewModel.cs b/src/modules/launcher/Wox/ViewModel/ResultViewModel.cs index 24b7c728ae..b38db74aaa 100644 --- a/src/modules/launcher/Wox/ViewModel/ResultViewModel.cs +++ b/src/modules/launcher/Wox/ViewModel/ResultViewModel.cs @@ -222,7 +222,7 @@ namespace Wox.ViewModel /// /// Triggers the action on the selected context button /// - /// False if there is nothing selected, oherwise true + /// False if there is nothing selected, otherwise true public bool ExecuteSelectedContextButton() { if (HasSelectedContextButton())