Spelling: ... src/modules/launcher (#3694)

This commit is contained in:
Josh Soref 2020-05-25 20:27:13 -04:00 committed by GitHub
parent c674fe1f04
commit 71e528139c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 38 additions and 38 deletions

View File

@ -70,7 +70,7 @@ public:
} }
// Return array of the names of all events that this powertoy listens for, with // 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. // list.
virtual const wchar_t** get_events() override { virtual const wchar_t** get_events() override {
static const wchar_t* events[] = { nullptr }; static const wchar_t* events[] = { nullptr };

View File

@ -221,7 +221,7 @@ namespace Microsoft.Plugin.Folder
throw; 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(); return results.Concat(folderList.OrderBy(x => x.Title)).Concat(fileList.OrderBy(x => x.Title)).ToList();
} }

View File

@ -207,7 +207,7 @@ namespace Microsoft.Plugin.Program
void InitializeTimer() 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; var delayInterval = 5000;
_timer = new System.Timers.Timer(delayInterval); _timer = new System.Timers.Timer(delayInterval);
_timer.Enabled = true; _timer.Enabled = true;

View File

@ -28,7 +28,7 @@ namespace Microsoft.Plugin.Program.Views.Commands
Main._settings Main._settings
.DisabledProgramSources .DisabledProgramSources
.Where(t1 => !Main._settings .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)) .Any(x => t1.UniqueIdentifier == x.UniqueIdentifier))
.Select(x => x) .Select(x => x)
.ToList() .ToList()

View File

@ -14,7 +14,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
{ {
/// <summary> /// <summary>
/// Finds the best match (the one with the most /// 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 /// returns the index location of each of the letters
/// of the matches /// of the matches
/// </summary> /// </summary>
@ -67,7 +67,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// Gets all the possible matches to the search string with in the text /// Gets all the possible matches to the search string with in the text
/// </summary> /// </summary>
/// <param name="matches"> a table showing the matches as generated by /// <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> /// 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> /// <returns>a list of the possible combinations that match the search text</returns>
public static List<List<int>> GetAllMatchIndexes(bool[,] matches) public static List<List<int>> GetAllMatchIndexes(bool[,] matches)

View File

@ -7,7 +7,7 @@ using System;
namespace Microsoft.Plugin.WindowWalker.Components namespace Microsoft.Plugin.WindowWalker.Components
{ {
/// <summary> /// <summary>
/// Class containg methods to control the live preview /// Class containing methods to control the live preview
/// </summary> /// </summary>
internal class LivePreview internal class LivePreview
{ {

View File

@ -85,7 +85,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <param name="hwnd">The handle to the current window being enumerated</param> /// <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 /// <param name="lParam">Value being passed from the caller (we don't use this but might come in handy
/// in the future</param> /// 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) public bool WindowEnumerationCallBack(IntPtr hwnd, IntPtr lParam)
{ {
Window newWindow = new Window(hwnd); Window newWindow = new Window(hwnd);

View File

@ -302,7 +302,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
} }
/// <summary> /// <summary>
/// Switches dekstop focus to the window /// Switches desktop focus to the window
/// </summary> /// </summary>
public void SwitchToWindow() public void SwitchToWindow()
{ {

View File

@ -84,7 +84,7 @@ namespace PowerLauncher
// load plugin before change language, because plugin language also needs be changed // load plugin before change language, because plugin language also needs be changed
InternationalizationManager.Instance.Settings = _settings; InternationalizationManager.Instance.Settings = _settings;
InternationalizationManager.Instance.ChangeLanguage(_settings.Language); 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.Settings = _settings;
ThemeManager.Instance.ChangeTheme(_settings.Theme); ThemeManager.Instance.ChangeTheme(_settings.Theme);
@ -102,7 +102,7 @@ namespace PowerLauncher
PowerToysTelemetry.Log.WriteEvent(new LauncherBootEvent() { BootTimeMs = bootTime.ElapsedMilliseconds }); PowerToysTelemetry.Log.WriteEvent(new LauncherBootEvent() { BootTimeMs = bootTime.ElapsedMilliseconds });
//[Conditional("RELEASE")] //[Conditional("RELEASE")]
// check udpate every 5 hours // check update every 5 hours
// check updates on startup // check updates on startup
}); });

View File

@ -85,7 +85,7 @@
Margin="{TemplateBinding Padding}" Margin="{TemplateBinding Padding}"
Grid.Row="0" /> Grid.Row="0" />
<!--Scrollbar in thr rigth of ScrollViewer--> <!--Scrollbar in the right of ScrollViewer-->
<ScrollBar x:Name="PART_VerticalScrollBar" <ScrollBar x:Name="PART_VerticalScrollBar"
AutomationProperties.AutomationId="VerticalScrollBar" AutomationProperties.AutomationId="VerticalScrollBar"
Cursor="Arrow" Cursor="Arrow"

View File

@ -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, /* 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. * "id" and "jsonrpc" in the request, since it's not so useful in our request model.
* *
* When execute a query: * When execute a query:

View File

@ -31,7 +31,7 @@ namespace Wox.Core.Plugin
private static void ParsePluginConfigs(IEnumerable<string> directories) 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) foreach (var directory in directories)
{ {
if (File.Exists(Path.Combine(directory, "NeedDelete.txt"))) if (File.Exists(Path.Combine(directory, "NeedDelete.txt")))

View File

@ -74,8 +74,8 @@ namespace Wox.Core.Plugin
UnZip(path, newPluginPath, true); UnZip(path, newPluginPath, true);
Directory.Delete(tempFoler, true); Directory.Delete(tempFoler, true);
//exsiting plugins may be has loaded by application, //existing plugins could be loaded by the application,
//if we try to delelte those kind of plugins, we will get a error that indicate the //if we try to delete those kind of plugins, we will get a error that indicate the
//file is been used now. //file is been used now.
//current solution is to restart wox. Ugly. //current solution is to restart wox. Ugly.
//if (MainWindow.Initialized) //if (MainWindow.Initialized)
@ -148,7 +148,7 @@ namespace Wox.Core.Plugin
/// </summary> /// </summary>
/// <param name="zipedFile">The ziped file.</param> /// <param name="zipedFile">The ziped file.</param>
/// <param name="strDirectory">The STR directory.</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) private static void UnZip(string zipedFile, string strDirectory, bool overWrite)
{ {
if (strDirectory == "") if (strDirectory == "")

View File

@ -29,7 +29,7 @@ namespace Wox.Core.Plugin
public static IPublicAPI API { private set; get; } 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; public static PluginsSettings Settings;
private static List<PluginMetadata> _metadatas; private static List<PluginMetadata> _metadatas;
private static readonly string[] Directories = { Constant.PreinstalledDirectory, Constant.PluginsDirectory }; private static readonly string[] Directories = { Constant.PreinstalledDirectory, Constant.PluginsDirectory };

View File

@ -213,7 +213,7 @@ namespace Wox.Core.Resource
public void SetBlurForWindow() 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)) if (Environment.OSVersion.Version >= new Version(6, 2))
{ {
var resource = Application.Current.TryFindResource("ThemeBlurEnabled"); var resource = Application.Current.TryFindResource("ThemeBlurEnabled");

View File

@ -106,12 +106,12 @@ namespace Wox.Infrastructure
return pinyin; return pinyin;
} }
/// <summmary> /// <summary>
/// replace chinese character with pinyin, non chinese character won't be modified /// 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 /// e.g. 音乐 will return yinyue and yinle
/// <param name="characters"> should be word or sentence, instead of single character. e.g. 微软 </param> /// <param name="characters"> should be word or sentence, instead of single character. e.g. 微软 </param>
/// </summmary> /// </summary>
public string[][] PinyinCombination(string characters) public string[][] PinyinCombination(string characters)
{ {
if (!_settings.ShouldUsePinyin || string.IsNullOrEmpty(characters)) if (!_settings.ShouldUsePinyin || string.IsNullOrEmpty(characters))

View File

@ -9,7 +9,7 @@ using Wox.Infrastructure.Logger;
namespace Wox.Infrastructure.Storage namespace Wox.Infrastructure.Storage
{ {
/// <summary> /// <summary>
/// Stroage object using binary data /// Storage object using binary data
/// Normally, it has better performance, but not readable /// Normally, it has better performance, but not readable
/// </summary> /// </summary>
public class BinaryStorage<T> public class BinaryStorage<T>

View File

@ -2,7 +2,7 @@
{ {
/// <summary> /// <summary>
/// Save plugin settings/cache, /// 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> /// </summary>
public interface ISavable public interface ISavable
{ {

View File

@ -6,7 +6,7 @@ namespace Wox.Infrastructure.Storage
{ {
public PluginJsonStorage() public PluginJsonStorage()
{ {
// C# releated, add python releated below // C# related, add python related below
var dataType = typeof(T); var dataType = typeof(T);
var assemblyName = typeof(T).Assembly.GetName().Name; var assemblyName = typeof(T).Assembly.GetName().Name;
DirectoryPath = Path.Combine(Constant.DataDirectory, DirectoryName, Constant.Plugins, assemblyName); DirectoryPath = Path.Combine(Constant.DataDirectory, DirectoryName, Constant.Plugins, assemblyName);

View File

@ -304,13 +304,13 @@ namespace Wox.Infrastructure
public class MatchOption public class MatchOption
{ {
/// <summary> /// <summary>
/// prefix of match char, use for hightlight /// prefix of match char, use for highlight
/// </summary> /// </summary>
[Obsolete("this is never used")] [Obsolete("this is never used")]
public string Prefix { get; set; } = ""; public string Prefix { get; set; } = "";
/// <summary> /// <summary>
/// suffix of match char, use for hightlight /// suffix of match char, use for highlight
/// </summary> /// </summary>
[Obsolete("this is never used")] [Obsolete("this is never used")]
public string Suffix { get; set; } = ""; public string Suffix { get; set; } = "";

View File

@ -64,7 +64,7 @@ namespace Wox.Plugin
/// <summary> /// <summary>
/// Reloads any Plugins that have the /// Reloads any Plugins that have the
/// IReloadable implemented. It refeshes /// IReloadable implemented. It refreshes
/// Plugin's in memory data with new content /// Plugin's in memory data with new content
/// added by user. /// added by user.
/// </summary> /// </summary>

View File

@ -43,7 +43,7 @@ namespace Wox.Plugin
/// </summary> /// </summary>
public const string TermSeperater = " "; public const string TermSeperater = " ";
/// <summary> /// <summary>
/// User can set multiple action keywords seperated by ';' /// User can set multiple action keywords separated by ';'
/// </summary> /// </summary>
public const string ActionKeywordSeperater = ";"; public const string ActionKeywordSeperater = ";";

View File

@ -62,7 +62,7 @@ namespace Wox.Plugin
public IList<int> SubTitleHighlightData { get; set; } public IList<int> SubTitleHighlightData { get; set; }
/// <summary> /// <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> /// </summary>
internal Query OriginQuery { get; set; } internal Query OriginQuery { get; set; }

View File

@ -73,7 +73,7 @@ namespace Wox
// load plugin before change language, because plugin language also needs be changed // load plugin before change language, because plugin language also needs be changed
InternationalizationManager.Instance.Settings = _settings; InternationalizationManager.Instance.Settings = _settings;
InternationalizationManager.Instance.ChangeLanguage(_settings.Language); 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.Settings = _settings;
ThemeManager.Instance.ChangeTheme(_settings.Theme); ThemeManager.Instance.ChangeTheme(_settings.Theme);

View File

@ -18,7 +18,7 @@ namespace Wox.Helper
/// <summary> /// <summary>
/// Drops a standard shadow to a WPF Window, even if the window isborderless. Only works with DWM (Vista and Seven). /// 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, /// 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> /// </summary>
/// <param name="window">Window to which the shadow will be applied</param> /// <param name="window">Window to which the shadow will be applied</param>
public static void DropShadowToWindow(Window window) public static void DropShadowToWindow(Window window)

View File

@ -14,7 +14,7 @@ using System.Windows;
using System.Windows.Threading; using System.Windows.Threading;
// http://blogs.microsoft.co.il/arik/2010/05/28/wpf-single-instance-application/ // 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 namespace Wox.Helper
{ {
internal enum WM internal enum WM
@ -284,7 +284,7 @@ namespace Wox.Helper
{ {
// The application was clickonce deployed // 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 // 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 // the app is launched and the app can obtain its commandline arguments from the
// shared location // shared location
@ -335,7 +335,7 @@ namespace Wox.Helper
// Do an asynchronous call to ActivateFirstInstance function // Do an asynchronous call to ActivateFirstInstance function
Application.Current.Dispatcher.Invoke(ActivateFirstInstance); Application.Current.Dispatcher.Invoke(ActivateFirstInstance);
} }
// Disconect client // Disconnect client
pipeServer.Disconnect(); pipeServer.Disconnect();
} }
} }

View File

@ -85,7 +85,7 @@
Margin="{TemplateBinding Padding}" Margin="{TemplateBinding Padding}"
Grid.Row="0" /> Grid.Row="0" />
<!--Scrollbar in thr rigth of ScrollViewer--> <!--Scrollbar in the right of ScrollViewer-->
<ScrollBar x:Name="PART_VerticalScrollBar" <ScrollBar x:Name="PART_VerticalScrollBar"
AutomationProperties.AutomationId="VerticalScrollBar" AutomationProperties.AutomationId="VerticalScrollBar"
Cursor="Arrow" Cursor="Arrow"

View File

@ -251,7 +251,7 @@ namespace Wox.ViewModel
/// <summary> /// <summary>
/// we need move cursor to end when we manually changed query /// 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. /// 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> /// </summary>
/// <param name="queryText"></param> /// <param name="queryText"></param>
/// <param name="requery">Optional Parameter that if true, will automatically execute a query against the updated text</param> /// <param name="requery">Optional Parameter that if true, will automatically execute a query against the updated text</param>

View File

@ -222,7 +222,7 @@ namespace Wox.ViewModel
/// <summary> /// <summary>
/// Triggers the action on the selected context button /// Triggers the action on the selected context button
/// </summary> /// </summary>
/// <returns>False if there is nothing selected, oherwise true</returns> /// <returns>False if there is nothing selected, otherwise true</returns>
public bool ExecuteSelectedContextButton() public bool ExecuteSelectedContextButton()
{ {
if (HasSelectedContextButton()) if (HasSelectedContextButton())