// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Diagnostics;
usingSystem.IO;
usingSystem.Reflection;
usingSystem.Windows;
usingSystem.Windows.Input;
usingWox.Infrastructure;
usingWox.Infrastructure.Logger;
usingWox.Plugin;
namespaceMicrosoft.Plugin.Folder
{
internalclassContextMenuLoader:IContextMenu
{
privatereadonlyPluginInitContext_context;
publicContextMenuLoader(PluginInitContextcontext)
{
_context=context;
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "We want to keep the process alive, and instead log the exception")]
Log.Exception($"|Microsoft.Plugin.Folder.ContextMenuLoader.LoadContextMenus| Failed to open {record.FullPath} in console, {e.Message}",e);
returnfalse;
}
},
});
}
returncontextMenus;
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "We want to keep the process alive, and instead log the exception")]