Skip to content

Commit

Permalink
Spelling: ... src/modules/launcher (#3694)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed May 26, 2020
1 parent c674fe1 commit 71e5281
Show file tree
Hide file tree
Showing 29 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion src/modules/launcher/Microsoft.Launcher/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Microsoft_Launcher : public PowertoyModuleIface {
}

// 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 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private List<Result> QueryInternal_Directory_Exists(Query query)
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();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void InitializeFileWatchers()

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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal static List<ProgramSource> LoadProgramSources(this List<Settings.Progra
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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class FuzzyMatching
{
/// <summary>
/// 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
/// </summary>
Expand Down Expand Up @@ -67,7 +67,7 @@ public static List<int> FindBestFuzzyMatch(string text, string searchText)
/// Gets all the possible matches to the search string with in the text
/// </summary>
/// <param name="matches"> 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</param>
/// <returns>a list of the possible combinations that match the search text</returns>
public static List<List<int>> GetAllMatchIndexes(bool[,] matches)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Microsoft.Plugin.WindowWalker.Components
{
/// <summary>
/// Class containg methods to control the live preview
/// Class containing methods to control the live preview
/// </summary>
internal class LivePreview
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void UpdateOpenWindowsList()
/// <param name="hwnd">The handle to the current window being enumerated</param>
/// <param name="lParam">Value being passed from the caller (we don't use this but might come in handy
/// in the future</param>
/// <returns>true to make sure to contiue enumeration</returns>
/// <returns>true to make sure to continue enumeration</returns>
public bool WindowEnumerationCallBack(IntPtr hwnd, IntPtr lParam)
{
Window newWindow = new Window(hwnd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public void HighlightWindow()
}

/// <summary>
/// Switches dekstop focus to the window
/// Switches desktop focus to the window
/// </summary>
public void SwitchToWindow()
{
Expand Down
4 changes: 2 additions & 2 deletions src/modules/launcher/PowerLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void OnStartup(object sender, StartupEventArgs e)
// 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);
Expand All @@ -102,7 +102,7 @@ private void OnStartup(object sender, StartupEventArgs e)
PowerToysTelemetry.Log.WriteEvent(new LauncherBootEvent() { BootTimeMs = bootTime.ElapsedMilliseconds });
//[Conditional("RELEASE")]
// check udpate every 5 hours
// check update every 5 hours
// check updates on startup
});
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/PowerLauncher/Themes/Base.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
Margin="{TemplateBinding Padding}"
Grid.Row="0" />

<!--Scrollbar in thr rigth of ScrollViewer-->
<!--Scrollbar in the right of ScrollViewer-->
<ScrollBar x:Name="PART_VerticalScrollBar"
AutomationProperties.AutomationId="VerticalScrollBar"
Cursor="Arrow"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox.Core/Plugin/JsonPRCModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/* We basically follow the Json-RPC 2.0 spec (http://www.jsonrpc.org/specification) to invoke methods between Wox and other plugins,
* like python or other self-execute program. But, we added addtional infos (proxy and so on) into rpc request. Also, we didn't use the
* like python or other self-execute program. But, we added additional infos (proxy and so on) into rpc request. Also, we didn't use the
* "id" and "jsonrpc" in the request, since it's not so useful in our request model.
*
* When execute a query:
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox.Core/Plugin/PluginConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static List<PluginMetadata> Parse(string[] pluginDirectories)

private static void ParsePluginConfigs(IEnumerable<string> 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")))
Expand Down
6 changes: 3 additions & 3 deletions src/modules/launcher/Wox.Core/Plugin/PluginInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ internal static void Install(string path)
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)
Expand Down Expand Up @@ -148,7 +148,7 @@ private static PluginMetadata GetMetadataFromJson(string pluginDirectory)
/// </summary>
/// <param name="zipedFile">The ziped file.</param>
/// <param name="strDirectory">The STR directory.</param>
/// <param name="overWrite">overwirte</param>
/// <param name="overWrite">overwrite</param>
private static void UnZip(string zipedFile, string strDirectory, bool overWrite)
{
if (strDirectory == "")
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox.Core/Plugin/PluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static class PluginManager

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<PluginMetadata> _metadatas;
private static readonly string[] Directories = { Constant.PreinstalledDirectory, Constant.PluginsDirectory };
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox.Core/Resource/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private enum WindowCompositionAttribute
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");
Expand Down
6 changes: 3 additions & 3 deletions src/modules/launcher/Wox.Infrastructure/Alphabet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ public string[] Pinyin(string word)
return pinyin;
}

/// <summmary>
/// <summary>
/// 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
/// <param name="characters"> should be word or sentence, instead of single character. e.g. 微软 </param>
/// </summmary>
/// </summary>
public string[][] PinyinCombination(string characters)
{
if (!_settings.ShouldUsePinyin || string.IsNullOrEmpty(characters))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Wox.Infrastructure.Storage
{
/// <summary>
/// Stroage object using binary data
/// Storage object using binary data
/// Normally, it has better performance, but not readable
/// </summary>
public class BinaryStorage<T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
/// <summary>
/// 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
/// </summary>
public interface ISavable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class PluginJsonStorage<T> :JsonStrorage<T> where T : new()
{
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);
Expand Down
4 changes: 2 additions & 2 deletions src/modules/launcher/Wox.Infrastructure/StringMatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,13 @@ private int ScoreAfterSearchPrecisionFilter(int rawScore)
public class MatchOption
{
/// <summary>
/// prefix of match char, use for hightlight
/// prefix of match char, use for highlight
/// </summary>
[Obsolete("this is never used")]
public string Prefix { get; set; } = "";

/// <summary>
/// suffix of match char, use for hightlight
/// suffix of match char, use for highlight
/// </summary>
[Obsolete("this is never used")]
public string Suffix { get; set; } = "";
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox.Plugin/IPublicAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public interface IPublicAPI

/// <summary>
/// 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.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox.Plugin/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Query(string rawQuery, string search, string[] terms, string actionKeywor
/// </summary>
public const string TermSeperater = " ";
/// <summary>
/// User can set multiple action keywords seperated by ';'
/// User can set multiple action keywords separated by ';'
/// </summary>
public const string ActionKeywordSeperater = ";";

Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox.Plugin/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public string IcoPath
public IList<int> SubTitleHighlightData { get; set; }

/// <summary>
/// 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
/// </summary>
internal Query OriginQuery { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private void OnStartup(object sender, StartupEventArgs e)
// 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);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox/Helper/DWMDropShadow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class DwmDropShadow
/// <summary>
/// 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).
/// </summary>
/// <param name="window">Window to which the shadow will be applied</param>
public static void DropShadowToWindow(Window window)
Expand Down
6 changes: 3 additions & 3 deletions src/modules/launcher/Wox/Helper/SingleInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
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
Expand Down Expand Up @@ -284,7 +284,7 @@ private static IList<string> GetCommandLineArgs( string uniqueApplicationName )
{

// 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
Expand Down Expand Up @@ -335,7 +335,7 @@ private static async Task CreateRemoteService(string channelName)
// Do an asynchronous call to ActivateFirstInstance function
Application.Current.Dispatcher.Invoke(ActivateFirstInstance);
}
// Disconect client
// Disconnect client
pipeServer.Disconnect();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox/Themes/Base.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
Margin="{TemplateBinding Padding}"
Grid.Row="0" />

<!--Scrollbar in thr rigth of ScrollViewer-->
<!--Scrollbar in the right of ScrollViewer-->
<ScrollBar x:Name="PART_VerticalScrollBar"
AutomationProperties.AutomationId="VerticalScrollBar"
Cursor="Arrow"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private void InitializeKeyCommands()
/// <summary>
/// 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.
/// </summary>
/// <param name="queryText"></param>
/// <param name="requery">Optional Parameter that if true, will automatically execute a query against the updated text</param>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/launcher/Wox/ViewModel/ResultViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public bool HasSelectedContextButton()
/// <summary>
/// Triggers the action on the selected context button
/// </summary>
/// <returns>False if there is nothing selected, oherwise true</returns>
/// <returns>False if there is nothing selected, otherwise true</returns>
public bool ExecuteSelectedContextButton()
{
if (HasSelectedContextButton())
Expand Down

0 comments on commit 71e5281

Please sign in to comment.