├── art
├── options.png
└── output.png
├── .github
├── FUNDING.yml
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
├── workflows
│ └── build.yaml
├── CODE_OF_CONDUCT.md
└── CONTRIBUTING.md
├── src
├── Resources
│ └── Icon.png
├── VSCommandTable.vsct
├── Properties
│ └── AssemblyInfo.cs
├── Providers
│ ├── DebugProvider.cs
│ ├── BaseProvider.cs
│ ├── PublishProvider.cs
│ ├── DocumentProvider.cs
│ ├── StatusbarProvider.cs
│ ├── ProjectProvider.cs
│ ├── WindowProvider.cs
│ ├── ShellProvider.cs
│ ├── BuildProvider.cs
│ ├── SolutionProvider.cs
│ └── CommandProvider.cs
├── VSCommandTable.cs
├── source.extension.cs
├── source.extension.vsixmanifest
├── EventLogVSPackage.cs
├── Options
│ └── General.cs
└── EventLogVS.csproj
├── vs-publish.json
├── README.md
├── EventLogVS.sln
├── .gitattributes
├── .editorconfig
├── .gitignore
└── LICENSE
/art/options.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/EventLogVS/master/art/options.png
--------------------------------------------------------------------------------
/art/output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/EventLogVS/master/art/output.png
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: madskristensen
4 |
--------------------------------------------------------------------------------
/src/Resources/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madskristensen/EventLogVS/master/src/Resources/Icon.png
--------------------------------------------------------------------------------
/src/VSCommandTable.vsct:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/vs-publish.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/vsix-publish",
3 | "categories": [ "documentation" ],
4 | "identity": {
5 | "internalName": "EventLog",
6 | "tags": [ "log", "history", "timeline", "time", "events" ]
7 | },
8 | "assetFiles": [
9 | {
10 | "pathOnDisk": "art/options.png",
11 | "targetPath": "art/options.png"
12 | },
13 | {
14 | "pathOnDisk": "art/output.png",
15 | "targetPath": "art/output.png"
16 | }
17 | ],
18 | "overview": "README.md",
19 | "publisher": "MadsKristensen",
20 | "repo": "https://github.com/MadsKristensen/EventLogVS"
21 | }
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: bug
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Additional context**
27 | Add any other context about the problem here.
28 |
--------------------------------------------------------------------------------
/src/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using EventLogVS;
2 |
3 | using System.Reflection;
4 | using System.Runtime.InteropServices;
5 |
6 | [assembly: AssemblyTitle(Vsix.Name)]
7 | [assembly: AssemblyDescription(Vsix.Description)]
8 | [assembly: AssemblyConfiguration("")]
9 | [assembly: AssemblyCompany(Vsix.Author)]
10 | [assembly: AssemblyProduct(Vsix.Name)]
11 | [assembly: AssemblyCopyright(Vsix.Author)]
12 | [assembly: AssemblyTrademark("")]
13 | [assembly: AssemblyCulture("")]
14 |
15 | [assembly: ComVisible(false)]
16 |
17 | [assembly: AssemblyVersion(Vsix.Version)]
18 | [assembly: AssemblyFileVersion(Vsix.Version)]
19 |
20 | namespace System.Runtime.CompilerServices
21 | {
22 | public class IsExternalInit { }
23 | }
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: enhancement
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/src/Providers/DebugProvider.cs:
--------------------------------------------------------------------------------
1 | namespace EventLogVS.Providers
2 | {
3 | internal class DebugProvider : BaseProvider
4 | {
5 | public override string Name => "Debugger";
6 |
7 | public override bool IsEnabled => General.Instance.EnableDebugProvider;
8 |
9 | protected override Task InitializeAsync()
10 | {
11 | VS.Events.DebuggerEvents.EnterBreakMode += () => { Write($"Enter break mode"); };
12 | VS.Events.DebuggerEvents.EnterDesignMode += () => { Write($"Enter design mode"); };
13 | VS.Events.DebuggerEvents.EnterEditAndContinueMode += () => { Write($"Enter edit and continue mode"); };
14 | VS.Events.DebuggerEvents.EnterRunMode += () => { Write($"Enter run mode"); };
15 |
16 | return Task.CompletedTask;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/VSCommandTable.cs:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------------------------------
2 | //
3 | // This file was generated by the free extension VSIX Synchronizer
4 | //
5 | // ------------------------------------------------------------------------------
6 | using System;
7 |
8 | namespace EventLogVS
9 | {
10 | ///
11 | /// Helper class that exposes all GUIDs used across VS Package.
12 | ///
13 | internal sealed partial class PackageGuids
14 | {
15 | public const string EventLogVSString = "ee4254d5-ba46-41bd-8603-b3feb97635e7";
16 | public static Guid EventLogVS = new Guid(EventLogVSString);
17 | }
18 | ///
19 | /// Helper class that encapsulates all CommandIDs uses across VS Package.
20 | ///
21 | internal sealed partial class PackageIds
22 | {
23 | }
24 | }
--------------------------------------------------------------------------------
/src/source.extension.cs:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------------------------------
2 | //
3 | // This file was generated by VSIX Synchronizer
4 | //
5 | // ------------------------------------------------------------------------------
6 | namespace EventLogVS
7 | {
8 | internal sealed partial class Vsix
9 | {
10 | public const string Id = "EventLogVS.a9f6a6f5-4752-4c4d-a142-15340fc800af";
11 | public const string Name = "Event Timeline";
12 | public const string Description = @"Logs all events from the IDE in a timeline in a separate Output Window pane. It let's you diagnose issues and gives you a historic view of your actions in Visual Studio.";
13 | public const string Language = "en-US";
14 | public const string Version = "1.0";
15 | public const string Author = "Mads Kristensen";
16 | public const string Tags = "log, history, timeline, time, events";
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Providers/BaseProvider.cs:
--------------------------------------------------------------------------------
1 | namespace EventLogVS.Providers
2 | {
3 | internal abstract class BaseProvider where T : BaseProvider, new()
4 | {
5 | private OutputWindowPane Pane { get; set; }
6 |
7 | public abstract string Name { get; }
8 |
9 | public abstract bool IsEnabled { get; }
10 |
11 | public static async Task InitializeAsync(OutputWindowPane pane)
12 | {
13 | T provider = new()
14 | {
15 | Pane = pane
16 | };
17 |
18 | await provider.InitializeAsync();
19 | }
20 |
21 | protected abstract Task InitializeAsync();
22 |
23 | protected void Write(string text)
24 | {
25 | WriteAsync(text).FireAndForget();
26 | }
27 |
28 | protected async Task WriteAsync(string text)
29 | {
30 | if (IsEnabled)
31 | {
32 | await Pane.WriteLineAsync($"{DateTime.Now:T}\t[{Name}] {text}");
33 | }
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Providers/PublishProvider.cs:
--------------------------------------------------------------------------------
1 | using EnvDTE;
2 | using EnvDTE80;
3 |
4 | namespace EventLogVS.Providers
5 | {
6 | internal class PublishProvider : BaseProvider
7 | {
8 | private PublishEvents _events;
9 |
10 | public override string Name => "Publish";
11 |
12 | public override bool IsEnabled => General.Instance.EnablePublishProvider;
13 |
14 | protected override async Task InitializeAsync()
15 | {
16 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
17 |
18 | DTE2 dte = await VS.GetServiceAsync();
19 | _events = (dte.Events as Events2).PublishEvents;
20 |
21 | _events.OnPublishBegin += (ref bool Continue) => { Write("Publish begin"); };
22 | _events.OnPublishDone += (success) => { Write($"Publish done: {Result(success)}"); };
23 | }
24 |
25 | private static string Result(bool success)
26 | {
27 | return success ? "success" : "failed";
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Providers/DocumentProvider.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 |
3 | namespace EventLogVS.Providers
4 | {
5 | internal class DocumentProvider : BaseProvider
6 | {
7 | public override string Name => "Document";
8 |
9 | public override bool IsEnabled => General.Instance.EnableDocumentProvider;
10 |
11 | protected override Task InitializeAsync()
12 | {
13 | VS.Events.DocumentEvents.AfterDocumentWindowHide += (document) => { Write($"Document window hidden: {document.WindowFrame.Caption}"); };
14 | VS.Events.DocumentEvents.BeforeDocumentWindowShow += (document) => { Write($"Document window shown: {document.WindowFrame.Caption}"); };
15 | VS.Events.DocumentEvents.Closed += (document) => { Write($"Document closing: {Path.GetFileName(document)}"); };
16 | VS.Events.DocumentEvents.Opened += (document) => { Write($"Document opened: {Path.GetFileName(document)}"); };
17 | VS.Events.DocumentEvents.Saved += (document) => { Write($"Document saved: {Path.GetFileName(document)}"); };
18 |
19 | return Task.CompletedTask;
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Providers/StatusbarProvider.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace EventLogVS.Providers
4 | {
5 | internal class StatusbarProvider : BaseProvider
6 | {
7 | private static string _lastStatusMessage;
8 | private static readonly List _ignore = new()
9 | { "Ready" };
10 |
11 | public override string Name => "Status bar";
12 |
13 | protected override async Task InitializeAsync()
14 | {
15 | await Task.Yield();
16 |
17 | while (true)
18 | {
19 | await CheckStatusMessageAsync();
20 | await Task.Delay(1000);
21 | }
22 | }
23 |
24 | private async Task CheckStatusMessageAsync()
25 | {
26 | string text = (await VS.StatusBar.GetMessageAsync())?.Trim();
27 |
28 | if (!string.IsNullOrEmpty(text) &&
29 | !_ignore.Contains(text) &&
30 | text != _lastStatusMessage)
31 | {
32 | _lastStatusMessage = text;
33 | await WriteAsync(text);
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/Providers/ProjectProvider.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using System.Linq;
3 |
4 | namespace EventLogVS.Providers
5 | {
6 | internal class ProjectProvider : BaseProvider
7 | {
8 | public override string Name => "Project";
9 |
10 | public override bool IsEnabled => General.Instance.EnableProjectProvider;
11 |
12 | protected override Task InitializeAsync()
13 | {
14 | VS.Events.ProjectItemsEvents.AfterAddProjectItems += (items) =>
15 | {
16 | Write($"Project item(s) added: ({string.Join(",", items.Select(i => Path.GetFileName(i.Name)))})");
17 | };
18 |
19 | VS.Events.ProjectItemsEvents.AfterRemoveProjectItems += (items) =>
20 | {
21 | Write($"Project item(s) removed: ({string.Join(",", items.ProjectItemRemoves.Select(i => Path.GetFileName(i.RemovedItemName)))})");
22 | };
23 |
24 | VS.Events.ProjectItemsEvents.AfterRenameProjectItems += (items) =>
25 | {
26 | Write($"Project item {Path.GetFileName(items.ProjectItemRenames[0].OldName)} renamed to {Path.GetFileName(items.ProjectItemRenames[0].SolutionItem.Name)}");
27 | };
28 |
29 | return Task.CompletedTask;
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/Providers/WindowProvider.cs:
--------------------------------------------------------------------------------
1 | namespace EventLogVS.Providers
2 | {
3 | internal class WindowProvider : BaseProvider
4 | {
5 | public override string Name => "Tool windows";
6 |
7 | public override bool IsEnabled => General.Instance.EnableWindowsProvider;
8 |
9 | protected override Task InitializeAsync()
10 | {
11 | VS.Events.WindowEvents.ActiveFrameChanged += (window) =>
12 | {
13 | if (window.OldFrame.Caption != window.NewFrame.Caption)
14 | {
15 | Write($"Active frame changed from {window.OldFrame.Caption} to {window.NewFrame.Caption}");
16 | }
17 | };
18 |
19 | VS.Events.WindowEvents.Destroyed += (window) => { Write($"Window closed: {window.Caption}"); };
20 | VS.Events.WindowEvents.FrameIsOnScreenChanged += (window) => { Write($"Frame is on screen changed: {window.Frame.Caption}"); };
21 |
22 | // These events are noisy and not very useful
23 | //VS.Events.WindowEvents.Created += (window) => { Write($"Window created: {window.Caption}"); };
24 | //VS.Events.WindowEvents.FrameIsVisibleChanged += (window) => { Write($"Frame is on screen changed. Is visible: {window.IsNewVisible}"); };
25 |
26 | return Task.CompletedTask;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [marketplace]: https://marketplace.visualstudio.com/items?itemName=MadsKristensen.EventLog
2 | [vsixgallery]: http://vsixgallery.com/extension/EventLogVS.a9f6a6f5-4752-4c4d-a142-15340fc800af/
3 | [repo]:https://github.com/madskristensen/EventLogVS
4 |
5 | # Event Timeline for Visual Studio
6 |
7 | [](https://github.com/madskristensen/EventLogVS/actions/workflows/build.yaml)
8 |
9 | Download this extension from the [Visual Studio Marketplace][marketplace]
10 | or get the [CI build][vsixgallery].
11 |
12 | --------------------------------------
13 |
14 | Logs all events from the IDE in a timeline in a separate Output Window pane. It let's you diagnose issues and gives you a historic view of your actions in Visual Studio.
15 |
16 | 
17 |
18 | You can toggle the differnet providers on and off from the Tools -> Options dialog.
19 |
20 | 
21 |
22 |
23 | ## How can I help?
24 | If you enjoy using the extension, please give it a ★★★★★ rating on the [Visual Studio Marketplace][marketplace].
25 |
26 | Should you encounter bugs or if you have feature requests, head on over to the [GitHub repo][repo] to open an issue if one doesn't already exist.
27 |
28 | Pull requests are also very welcome, since I can't always get around to fixing all bugs myself. This is a personal passion project, so my time is limited.
29 |
30 | Another way to help out is to [sponsor me on GitHub](https://github.com/sponsors/madskristensen).
31 |
--------------------------------------------------------------------------------
/src/Providers/ShellProvider.cs:
--------------------------------------------------------------------------------
1 | using EnvDTE;
2 | using EnvDTE80;
3 |
4 | namespace EventLogVS.Providers
5 | {
6 | internal class ShellProvider : BaseProvider
7 | {
8 | private DTEEvents _events;
9 |
10 | public override string Name => "Shell";
11 |
12 | public override bool IsEnabled => General.Instance.EnableShellProvider;
13 |
14 | protected override async Task InitializeAsync()
15 | {
16 | VS.Events.ShellEvents.EnvironmentColorChanged += () => { Write($"Environment color changed"); };
17 |
18 | // None of these events seem to fire
19 | VS.Events.ShellEvents.MainWindowVisibilityChanged += (visible) => { Write($"Main window visibility changed to {Result(visible)}"); };
20 | VS.Events.ShellEvents.ShellAvailable += () => { Write($"Shell available"); };
21 | VS.Events.ShellEvents.ShutdownStarted += () => { Write($"Shutdown started"); };
22 |
23 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
24 |
25 | DTE2 dte = await VS.GetServiceAsync();
26 | _events = (dte.Events as Events2).DTEEvents;
27 |
28 | _events.ModeChanged += (reason) => { Write($"Mode changed to {reason}"); };
29 | _events.OnStartupComplete += () => { Write($"Startup complete"); };
30 | _events.OnMacrosRuntimeReset += () => { Write($"Macro runtime reset"); };
31 | }
32 |
33 | private static string Result(bool visible)
34 | {
35 | return visible ? "visible" : "hidden";
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/Providers/BuildProvider.cs:
--------------------------------------------------------------------------------
1 | namespace EventLogVS.Providers
2 | {
3 | internal class BuildProvider : BaseProvider
4 | {
5 | public override string Name => "Build";
6 |
7 | public override bool IsEnabled => General.Instance.EnableBuildProvider;
8 |
9 | protected override Task InitializeAsync()
10 | {
11 | VS.Events.BuildEvents.ProjectBuildDone += (args) => { Write($"Project build done: {args.Project.Name} ({Result(args.IsSuccessful)})"); };
12 | VS.Events.BuildEvents.ProjectBuildStarted += (project) => { Write($"Project build started: {project.Name}"); };
13 | VS.Events.BuildEvents.ProjectCleanDone += (args) => { Write($"Project clean done: {args.Project.Name} ({Result(args.IsSuccessful)})"); };
14 | VS.Events.BuildEvents.ProjectCleanStarted += (project) => { Write($"Project clean started: {project.Name}"); };
15 | VS.Events.BuildEvents.ProjectConfigurationChanged += (project) => { Write($"Project configuration changed: {project.Name}"); };
16 |
17 | VS.Events.BuildEvents.SolutionBuildCancelled += () => { Write("Solution build cancelled"); };
18 | VS.Events.BuildEvents.SolutionBuildStarted += (s, e) => { Write("Solution build started"); };
19 | VS.Events.BuildEvents.SolutionBuildDone += (success) => { Write($"Solution build done: ({Result(success)})"); };
20 | VS.Events.BuildEvents.SolutionConfigurationChanged += () => { Write("Solution configuration changed"); };
21 |
22 | return Task.CompletedTask;
23 | }
24 |
25 | private static string Result(bool success)
26 | {
27 | return success ? "success" : "failed";
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Event Timeline
6 | Logs all events from the IDE in a timeline in a separate Output Window pane. It let's you diagnose issues and gives you a historic view of your actions in Visual Studio.
7 | https://github.com/MadsKristensen/EventLogVS
8 | Resources\LICENSE
9 | Resources\Icon.png
10 | Resources\Icon.png
11 | log, history, timeline, time, events
12 |
13 |
14 |
15 | amd64
16 |
17 |
18 | arm64
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/EventLogVSPackage.cs:
--------------------------------------------------------------------------------
1 | global using System;
2 | global using Community.VisualStudio.Toolkit;
3 | global using Microsoft.VisualStudio.Shell;
4 | global using Task = System.Threading.Tasks.Task;
5 | using System.Runtime.InteropServices;
6 | using System.Threading;
7 | using EventLogVS.Providers;
8 | using Microsoft.VisualStudio;
9 |
10 | namespace EventLogVS
11 | {
12 | [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
13 | [InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
14 | [ProvideMenuResource("Menus.ctmenu", 1)]
15 | [Guid(PackageGuids.EventLogVSString)]
16 | [ProvideOptionPage(typeof(OptionsProvider.GeneralOptions), Vsix.Name, "General", 0, 0, true, SupportsProfiles = true)]
17 | [ProvideAutoLoad(VSConstants.UICONTEXT.ShellInitialized_string, PackageAutoLoadFlags.BackgroundLoad)]
18 | public sealed class EventLogVSPackage : ToolkitPackage
19 | {
20 | protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress progress)
21 | {
22 | await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
23 |
24 | OutputWindowPane pane = await VS.Windows.CreateOutputWindowPaneAsync(Vsix.Name, true);
25 |
26 | await BuildProvider.InitializeAsync(pane);
27 | await CommandProvider.InitializeAsync(pane);
28 | await DebugProvider.InitializeAsync(pane);
29 | await DocumentProvider.InitializeAsync(pane);
30 | await ProjectProvider.InitializeAsync(pane);
31 | await PublishProvider.InitializeAsync(pane);
32 | await ShellProvider.InitializeAsync(pane);
33 | await SolutionProvider.InitializeAsync(pane);
34 | await WindowProvider.InitializeAsync(pane);
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/EventLogVS.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.7.33808.509
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventLogVS", "src\EventLogVS.csproj", "{8DC61C39-23FE-49EE-876D-498223F80552}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{241F64B7-0B0B-4874-B102-79CF23DB297C}"
9 | ProjectSection(SolutionItems) = preProject
10 | README.md = README.md
11 | vs-publish.json = vs-publish.json
12 | EndProjectSection
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Debug|arm64 = Debug|arm64
18 | Debug|x86 = Debug|x86
19 | Release|Any CPU = Release|Any CPU
20 | Release|arm64 = Release|arm64
21 | Release|x86 = Release|x86
22 | EndGlobalSection
23 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
24 | {8DC61C39-23FE-49EE-876D-498223F80552}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25 | {8DC61C39-23FE-49EE-876D-498223F80552}.Debug|Any CPU.Build.0 = Debug|Any CPU
26 | {8DC61C39-23FE-49EE-876D-498223F80552}.Debug|arm64.ActiveCfg = Debug|arm64
27 | {8DC61C39-23FE-49EE-876D-498223F80552}.Debug|arm64.Build.0 = Debug|arm64
28 | {8DC61C39-23FE-49EE-876D-498223F80552}.Debug|x86.ActiveCfg = Debug|x86
29 | {8DC61C39-23FE-49EE-876D-498223F80552}.Debug|x86.Build.0 = Debug|x86
30 | {8DC61C39-23FE-49EE-876D-498223F80552}.Release|Any CPU.ActiveCfg = Release|Any CPU
31 | {8DC61C39-23FE-49EE-876D-498223F80552}.Release|Any CPU.Build.0 = Release|Any CPU
32 | {8DC61C39-23FE-49EE-876D-498223F80552}.Release|arm64.ActiveCfg = Release|arm64
33 | {8DC61C39-23FE-49EE-876D-498223F80552}.Release|arm64.Build.0 = Release|arm64
34 | {8DC61C39-23FE-49EE-876D-498223F80552}.Release|x86.ActiveCfg = Release|x86
35 | {8DC61C39-23FE-49EE-876D-498223F80552}.Release|x86.Build.0 = Release|x86
36 | EndGlobalSection
37 | GlobalSection(SolutionProperties) = preSolution
38 | HideSolutionNode = FALSE
39 | EndGlobalSection
40 | GlobalSection(ExtensibilityGlobals) = postSolution
41 | SolutionGuid = {17BDC211-757E-4FC0-8502-9ED93E2EF1CB}
42 | EndGlobalSection
43 | EndGlobal
44 |
--------------------------------------------------------------------------------
/src/Providers/SolutionProvider.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 |
3 | namespace EventLogVS.Providers
4 | {
5 | internal class SolutionProvider : BaseProvider
6 | {
7 | public override string Name => "Solution";
8 |
9 | public override bool IsEnabled => General.Instance.EnableSolutionProvider;
10 |
11 | protected override Task InitializeAsync()
12 | {
13 | VS.Events.SolutionEvents.OnAfterBackgroundSolutionLoadComplete += () => { Write($"Solution loaded"); };
14 | VS.Events.SolutionEvents.OnAfterCloseFolder += (folder) => { Write($"Project closed: {Path.GetDirectoryName(folder)}"); };
15 | VS.Events.SolutionEvents.OnAfterCloseSolution += () => { Write($"Solution closed"); };
16 | VS.Events.SolutionEvents.OnAfterLoadProject += (project) => { Write($"Project loaded: {project.Text}"); };
17 | VS.Events.SolutionEvents.OnAfterMergeSolution += () => { Write($"Solution merged"); };
18 | VS.Events.SolutionEvents.OnAfterOpenFolder += (folder) => { Write($"Project opened: {Path.GetDirectoryName(folder)}"); };
19 | VS.Events.SolutionEvents.OnAfterOpenProject += (project) => { Write($"Project opened: {project.Text}"); };
20 | VS.Events.SolutionEvents.OnAfterOpenSolution += (solution) => { Write($"Solution {solution.Text} opened"); };
21 | VS.Events.SolutionEvents.OnAfterRenameProject += (project) => { Write($"Project renamed: {project.Text}"); };
22 | VS.Events.SolutionEvents.OnBeforeCloseFolder += (folder) => { Write($"Project closing: {Path.GetDirectoryName(folder)}"); };
23 | VS.Events.SolutionEvents.OnBeforeCloseProject += (project) => { Write($"Project closing: {project.Text}"); };
24 | VS.Events.SolutionEvents.OnBeforeCloseSolution += () => { Write($"Solution closing"); };
25 | VS.Events.SolutionEvents.OnBeforeOpenProject += (project) => { Write($"Project opening: {Path.GetFileName(project)}"); };
26 | VS.Events.SolutionEvents.OnBeforeOpenSolution += (solution) => { Write($"Solution opening: {Path.GetFileName(solution)}"); };
27 | VS.Events.SolutionEvents.OnBeforeUnloadProject += (project) => { Write($"Project unloading: {project.Text}"); };
28 |
29 | return Task.CompletedTask;
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/Options/General.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel;
2 | using System.Runtime.InteropServices;
3 |
4 | namespace EventLogVS
5 | {
6 | internal partial class OptionsProvider
7 | {
8 | [ComVisible(true)]
9 | public class GeneralOptions : BaseOptionPage { }
10 | }
11 |
12 | public class General : BaseOptionModel
13 | {
14 | private const string _category = "Event Providers";
15 |
16 | [Category(_category)]
17 | [DisplayName("Build")]
18 | [Description("Show information from the build events provider.")]
19 | [DefaultValue(true)]
20 | public bool EnableBuildProvider { get; set; } = true;
21 |
22 | [Category(_category)]
23 | [DisplayName("Command")]
24 | [Description("Show information from the command execution provider.")]
25 | [DefaultValue(true)]
26 | public bool EnableCommandProvider { get; set; } = true;
27 |
28 | [Category(_category)]
29 | [DisplayName("Debugger")]
30 | [Description("Show information from the debugger provider.")]
31 | [DefaultValue(true)]
32 | public bool EnableDebugProvider { get; set; } = true;
33 |
34 | [Category(_category)]
35 | [DisplayName("Document")]
36 | [Description("Show information from the document events provider.")]
37 | [DefaultValue(true)]
38 | public bool EnableDocumentProvider { get; set; } = true;
39 |
40 | [Category(_category)]
41 | [DisplayName("Project")]
42 | [Description("Show information from the project events provider.")]
43 | [DefaultValue(true)]
44 | public bool EnableProjectProvider { get; set; } = true;
45 |
46 | [Category(_category)]
47 | [DisplayName("Publish")]
48 | [Description("Show information from the publish events provider.")]
49 | [DefaultValue(true)]
50 | public bool EnablePublishProvider { get; set; } = true;
51 |
52 | [Category(_category)]
53 | [DisplayName("Solution")]
54 | [Description("Show information from the solution events provider.")]
55 | [DefaultValue(true)]
56 | public bool EnableSolutionProvider { get; set; } = true;
57 |
58 | [Category(_category)]
59 | [DisplayName("Shell")]
60 | [Description("Show information from the shell events provider.")]
61 | [DefaultValue(false)]
62 | public bool EnableShellProvider { get; set; }
63 |
64 | [Category(_category)]
65 | [DisplayName("Tool windows")]
66 | [Description("Show information from the tool windows events provider.")]
67 | [DefaultValue(false)]
68 | public bool EnableWindowsProvider { get; set; }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.github/workflows/build.yaml:
--------------------------------------------------------------------------------
1 | # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2 | name: "Build"
3 |
4 | on:
5 | push:
6 | branches: [master]
7 | pull_request:
8 | branches: [master]
9 | workflow_dispatch:
10 | branches: [master]
11 |
12 | jobs:
13 | build:
14 | outputs:
15 | version: ${{ steps.vsix_version.outputs.version-number }}
16 | name: Build
17 | runs-on: windows-2022
18 | env:
19 | Configuration: Release
20 | DeployExtension: False
21 | VsixManifestPath: src\source.extension.vsixmanifest
22 | VsixManifestSourcePath: src\source.extension.cs
23 |
24 | steps:
25 | - uses: actions/checkout@v3
26 |
27 | - name: Setup .NET build dependencies
28 | uses: timheuer/bootstrap-dotnet@v1
29 | with:
30 | nuget: 'false'
31 | sdk: 'false'
32 | msbuild: 'true'
33 |
34 | - name: Increment VSIX version
35 | id: vsix_version
36 | uses: timheuer/vsix-version-stamp@v2
37 | with:
38 | manifest-file: ${{ env.VsixManifestPath }}
39 | vsix-token-source-file: ${{ env.VsixManifestSourcePath }}
40 |
41 | - name: Build
42 | run: msbuild /v:m -restore /p:OutDir=\_built
43 |
44 | - name: Upload artifact
45 | uses: actions/upload-artifact@v3
46 | with:
47 | name: ${{ github.event.repository.name }}.vsix
48 | path: /_built/**/*.vsix
49 |
50 | publish:
51 | if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
52 | needs: build
53 | runs-on: windows-latest
54 |
55 | steps:
56 | - uses: actions/checkout@v3
57 |
58 | - name: Download Package artifact
59 | uses: actions/download-artifact@v3
60 | with:
61 | name: ${{ github.event.repository.name }}.vsix
62 |
63 | - name: Upload to Open VSIX
64 | uses: timheuer/openvsixpublish@v1
65 | with:
66 | vsix-file: ${{ github.event.repository.name }}.vsix
67 |
68 | # - name: Tag and Release
69 | # if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[release]') }}
70 | # id: tag_release
71 | # uses: softprops/action-gh-release@v0.1.13
72 | # with:
73 | # body: Release ${{ needs.build.outputs.version }}
74 | # tag_name: ${{ needs.build.outputs.version }}
75 | # files: |
76 | # **/*.vsix
77 |
78 | - name: Publish extension to Marketplace
79 | if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[release]') }}
80 | uses: cezarypiatek/VsixPublisherAction@0.1
81 | with:
82 | extension-file: '${{ github.event.repository.name }}.vsix'
83 | publish-manifest-file: 'vs-publish.json'
84 | personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}
85 |
--------------------------------------------------------------------------------
/src/Providers/CommandProvider.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using EnvDTE;
3 | using EnvDTE80;
4 |
5 | namespace EventLogVS.Providers
6 | {
7 | internal class CommandProvider : BaseProvider
8 | {
9 | private DTE2 _dte;
10 | private CommandEvents _events;
11 |
12 | private static readonly string[] _ignoreCmd =
13 | {
14 | "Edit.GoToFindCombo",
15 | "Debug.LocationToolbar.ProcessCombo",
16 | "Debug.LocationToolbar.ThreadCombo",
17 | "Debug.LocationToolbar.StackFrameCombo",
18 | "Build.SolutionPlatforms",
19 | "Build.SolutionConfigurations",
20 | "Edit.Delete",
21 | "Edit.DeleteBackwards",
22 | "Edit.Undo",
23 | "Edit.Redo",
24 | "Edit.Duplicate",
25 | "Edit.Copy",
26 | "Edit.Paste",
27 | "Edit.Cut",
28 | "Edit.CharLeft",
29 | "Edit.CharLeftExtend",
30 | "Edit.CharRight",
31 | "Edit.CharRightExtend",
32 | "Edit.SelectionCancel",
33 | "Edit.LineDown",
34 | "Edit.LineUp",
35 | "Edit.LineEnd",
36 | "Edit.LineUpExtend",
37 | "Edit.LineStartExtend",
38 | "Edit.LineStart",
39 | "Edit.WordNext",
40 | "Edit.WordNextExtend",
41 | "Edit.WordPrevious",
42 | "Edit.WordPreviousExtend",
43 | "Edit.MoveSelectedLinesDown",
44 | "Edit.MoveSelectedLinesUp",
45 | "Edit.PageUp",
46 | "Edit.PageDown",
47 | "Edit.BreakLine",
48 | "OutputVerbosity",
49 | };
50 |
51 | public override string Name => "Command";
52 |
53 | public override bool IsEnabled => General.Instance.EnableCommandProvider;
54 |
55 | protected override async Task InitializeAsync()
56 | {
57 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
58 |
59 | _dte = await VS.GetServiceAsync();
60 | _events = _dte.Events.CommandEvents;
61 | _events.BeforeExecute += OnBeforeExecute;
62 | }
63 |
64 | private void OnBeforeExecute(string Guid, int ID, object CustomIn, object CustomOut, ref bool CancelDefault)
65 | {
66 | ThreadHelper.ThrowIfNotOnUIThread();
67 |
68 | if (CustomIn is not null || CustomOut is not null)
69 | {
70 | return;
71 | }
72 |
73 | try
74 | {
75 | Command cmd = _dte.Commands.Item(Guid, ID);
76 |
77 | if (!string.IsNullOrWhiteSpace(cmd?.Name) && !ShouldCommandBeIgnored(cmd))
78 | {
79 | WriteAsync("'" + cmd.Name + "' invoked").FireAndForget();
80 | }
81 | }
82 | catch (ArgumentException)
83 | {
84 | }
85 | }
86 |
87 | private static bool ShouldCommandBeIgnored(Command cmd)
88 | {
89 | ThreadHelper.ThrowIfNotOnUIThread();
90 |
91 | return _ignoreCmd.Contains(cmd.Name, StringComparer.OrdinalIgnoreCase);
92 | }
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig is awesome:http://EditorConfig.org
2 |
3 | # top-most EditorConfig file
4 | root = true
5 |
6 | # Don't use tabs for indentation.
7 | [*]
8 | indent_style = space
9 | end_of_line = crlf
10 | # (Please don't specify an indent_size here; that has too many unintended consequences.)
11 |
12 | # Code files
13 | [*.{cs,csx,vb,vbx,xaml}]
14 | indent_size = 4
15 |
16 | # Xml project files
17 | [*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
18 | indent_size = 2
19 |
20 | # Xml config files
21 | [*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
22 | indent_size = 2
23 |
24 | # JSON files
25 | [*.json]
26 | indent_size = 2
27 |
28 | # Dotnet code style settings:
29 | [*.{cs,vb}]
30 | # Sort using and Import directives with System.* appearing first
31 | dotnet_sort_system_directives_first = true
32 | dotnet_separate_import_directive_groups = false
33 |
34 | # Avoid "this." and "Me." if not necessary
35 | dotnet_style_qualification_for_field = false : suggestion
36 | dotnet_style_qualification_for_property = false : suggestion
37 | dotnet_style_qualification_for_method = false : suggestion
38 | dotnet_style_qualification_for_event = false : suggestion
39 |
40 | # Use language keywords instead of framework type names for type references
41 | dotnet_style_predefined_type_for_locals_parameters_members = true : suggestion
42 | dotnet_style_predefined_type_for_member_access = true : suggestion
43 |
44 | # Suggest more modern language features when available
45 | dotnet_style_object_initializer = true : suggestion
46 | dotnet_style_collection_initializer = true : suggestion
47 | dotnet_style_coalesce_expression = true : suggestion
48 | dotnet_style_null_propagation = true : suggestion
49 | dotnet_style_explicit_tuple_names = true : suggestion
50 |
51 | # Naming rules - async methods to be prefixed with Async
52 | dotnet_naming_rule.async_methods_must_end_with_async.severity = warning
53 | dotnet_naming_rule.async_methods_must_end_with_async.symbols = method_symbols
54 | dotnet_naming_rule.async_methods_must_end_with_async.style = end_in_async_style
55 |
56 | dotnet_naming_symbols.method_symbols.applicable_kinds = method
57 | dotnet_naming_symbols.method_symbols.required_modifiers = async
58 |
59 | dotnet_naming_style.end_in_async_style.capitalization = pascal_case
60 | dotnet_naming_style.end_in_async_style.required_suffix = Async
61 |
62 | # Naming rules - private fields must start with an underscore
63 | dotnet_naming_rule.field_must_start_with_underscore.severity = warning
64 | dotnet_naming_rule.field_must_start_with_underscore.symbols = private_fields
65 | dotnet_naming_rule.field_must_start_with_underscore.style = start_underscore_style
66 |
67 | dotnet_naming_symbols.private_fields.applicable_kinds = field
68 | dotnet_naming_symbols.private_fields.applicable_accessibilities = private
69 |
70 | dotnet_naming_style.start_underscore_style.capitalization = camel_case
71 | dotnet_naming_style.start_underscore_style.required_prefix = _
72 |
73 | # CSharp code style settings:
74 | [*.cs]
75 | # Prefer "var" everywhere
76 | csharp_style_var_for_built_in_types =false:error
77 | csharp_style_var_when_type_is_apparent =false:error
78 | csharp_style_var_elsewhere =false:error
79 |
80 | # Prefer method-like constructs to have a block body
81 | csharp_style_expression_bodied_methods = false : none
82 | csharp_style_expression_bodied_constructors = false : none
83 | csharp_style_expression_bodied_operators = false : none
84 |
85 | # Prefer property-like constructs to have an expression-body
86 | csharp_style_expression_bodied_properties = true : none
87 | csharp_style_expression_bodied_indexers = true : none
88 | csharp_style_expression_bodied_accessors = true : none
89 |
90 | # Suggest more modern language features when available
91 | csharp_style_pattern_matching_over_is_with_cast_check = true : suggestion
92 | csharp_style_pattern_matching_over_as_with_null_check = true : suggestion
93 | csharp_style_inlined_variable_declaration = true : suggestion
94 | csharp_style_throw_expression = true : suggestion
95 | csharp_style_conditional_delegate_call = true : suggestion
96 |
97 | # Newline settings
98 | csharp_new_line_before_open_brace = all
99 | csharp_new_line_before_else = true
100 | csharp_new_line_before_catch = true
101 | csharp_new_line_before_finally = true
102 | csharp_new_line_before_members_in_object_initializers = true
103 | csharp_new_line_before_members_in_anonymous_types = true
104 |
105 | # IDE
106 | dotnet_diagnostic.IDE0058.severity = none
107 | dotnet_diagnostic.RS2008.severity = none # RS2008: Enable analyzer release tracking
108 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | bld/
21 | [Bb]in/
22 | [Oo]bj/
23 | [Ll]og/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | project.fragment.lock.json
46 | artifacts/
47 |
48 | *_i.c
49 | *_p.c
50 | *_i.h
51 | *.ilk
52 | *.meta
53 | *.obj
54 | *.pch
55 | *.pdb
56 | *.pgc
57 | *.pgd
58 | *.rsp
59 | *.sbr
60 | *.tlb
61 | *.tli
62 | *.tlh
63 | *.tmp
64 | *.tmp_proj
65 | *.log
66 | *.vspscc
67 | *.vssscc
68 | .builds
69 | *.pidb
70 | *.svclog
71 | *.scc
72 |
73 | # Chutzpah Test files
74 | _Chutzpah*
75 |
76 | # Visual C++ cache files
77 | ipch/
78 | *.aps
79 | *.ncb
80 | *.opendb
81 | *.opensdf
82 | *.sdf
83 | *.cachefile
84 | *.VC.db
85 | *.VC.VC.opendb
86 |
87 | # Visual Studio profiler
88 | *.psess
89 | *.vsp
90 | *.vspx
91 | *.sap
92 |
93 | # TFS 2012 Local Workspace
94 | $tf/
95 |
96 | # Guidance Automation Toolkit
97 | *.gpState
98 |
99 | # ReSharper is a .NET coding add-in
100 | _ReSharper*/
101 | *.[Rr]e[Ss]harper
102 | *.DotSettings.user
103 |
104 | # JustCode is a .NET coding add-in
105 | .JustCode
106 |
107 | # TeamCity is a build add-in
108 | _TeamCity*
109 |
110 | # DotCover is a Code Coverage Tool
111 | *.dotCover
112 |
113 | # NCrunch
114 | _NCrunch_*
115 | .*crunch*.local.xml
116 | nCrunchTemp_*
117 |
118 | # MightyMoose
119 | *.mm.*
120 | AutoTest.Net/
121 |
122 | # Web workbench (sass)
123 | .sass-cache/
124 |
125 | # Installshield output folder
126 | [Ee]xpress/
127 |
128 | # DocProject is a documentation generator add-in
129 | DocProject/buildhelp/
130 | DocProject/Help/*.HxT
131 | DocProject/Help/*.HxC
132 | DocProject/Help/*.hhc
133 | DocProject/Help/*.hhk
134 | DocProject/Help/*.hhp
135 | DocProject/Help/Html2
136 | DocProject/Help/html
137 |
138 | # Click-Once directory
139 | publish/
140 |
141 | # Publish Web Output
142 | *.[Pp]ublish.xml
143 | *.azurePubxml
144 | # TODO: Comment the next line if you want to checkin your web deploy settings
145 | # but database connection strings (with potential passwords) will be unencrypted
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
150 | # checkin your Azure Web App publish settings, but sensitive information contained
151 | # in these scripts will be unencrypted
152 | PublishScripts/
153 |
154 | # NuGet Packages
155 | *.nupkg
156 | # The packages folder can be ignored because of Package Restore
157 | **/packages/*
158 | # except build/, which is used as an MSBuild target.
159 | !**/packages/build/
160 | # Uncomment if necessary however generally it will be regenerated when needed
161 | #!**/packages/repositories.config
162 | # NuGet v3's project.json files produces more ignoreable files
163 | *.nuget.props
164 | *.nuget.targets
165 |
166 | # Microsoft Azure Build Output
167 | csx/
168 | *.build.csdef
169 |
170 | # Microsoft Azure Emulator
171 | ecf/
172 | rcf/
173 |
174 | # Windows Store app package directories and files
175 | AppPackages/
176 | BundleArtifacts/
177 | Package.StoreAssociation.xml
178 | _pkginfo.txt
179 |
180 | # Visual Studio cache files
181 | # files ending in .cache can be ignored
182 | *.[Cc]ache
183 | # but keep track of directories ending in .cache
184 | !*.[Cc]ache/
185 |
186 | # Others
187 | ClientBin/
188 | ~$*
189 | *~
190 | *.dbmdl
191 | *.dbproj.schemaview
192 | *.jfm
193 | *.pfx
194 | *.publishsettings
195 | node_modules/
196 | orleans.codegen.cs
197 |
198 | # Since there are multiple workflows, uncomment next line to ignore bower_components
199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
200 | #bower_components/
201 |
202 | # RIA/Silverlight projects
203 | Generated_Code/
204 |
205 | # Backup & report files from converting an old project file
206 | # to a newer Visual Studio version. Backup files are not needed,
207 | # because we have git ;-)
208 | _UpgradeReport_Files/
209 | Backup*/
210 | UpgradeLog*.XML
211 | UpgradeLog*.htm
212 |
213 | # SQL Server files
214 | *.mdf
215 | *.ldf
216 |
217 | # Business Intelligence projects
218 | *.rdl.data
219 | *.bim.layout
220 | *.bim_*.settings
221 |
222 | # Microsoft Fakes
223 | FakesAssemblies/
224 |
225 | # GhostDoc plugin setting file
226 | *.GhostDoc.xml
227 |
228 | # Node.js Tools for Visual Studio
229 | .ntvs_analysis.dat
230 |
231 | # Visual Studio 6 build log
232 | *.plg
233 |
234 | # Visual Studio 6 workspace options file
235 | *.opt
236 |
237 | # Visual Studio LightSwitch build output
238 | **/*.HTMLClient/GeneratedArtifacts
239 | **/*.DesktopClient/GeneratedArtifacts
240 | **/*.DesktopClient/ModelManifest.xml
241 | **/*.Server/GeneratedArtifacts
242 | **/*.Server/ModelManifest.xml
243 | _Pvt_Extensions
244 |
245 | # Paket dependency manager
246 | .paket/paket.exe
247 | paket-files/
248 |
249 | # FAKE - F# Make
250 | .fake/
251 |
252 | # JetBrains Rider
253 | .idea/
254 | *.sln.iml
255 |
256 | # CodeRush
257 | .cr/
258 |
259 | # Python Tools for Visual Studio (PTVS)
260 | __pycache__/
261 | *.pyc
--------------------------------------------------------------------------------
/.github/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | @mkristensen on Twitter.
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/src/EventLogVS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
5 | latest
6 |
7 |
8 |
9 | Debug
10 | AnyCPU
11 | 2.0
12 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
13 | {8DC61C39-23FE-49EE-876D-498223F80552}
14 | Library
15 | Properties
16 | EventLogVS
17 | EventLogVS
18 | v4.8
19 | true
20 | true
21 | true
22 | true
23 | false
24 | true
25 | true
26 | Program
27 | $(DevEnvDir)devenv.exe
28 | /rootsuffix Exp
29 |
30 |
31 | true
32 | full
33 | false
34 | bin\Debug\
35 | DEBUG;TRACE
36 | prompt
37 | 4
38 |
39 |
40 | pdbonly
41 | true
42 | bin\Release\
43 | TRACE
44 | prompt
45 | 4
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | True
63 | True
64 | source.extension.vsixmanifest
65 |
66 |
67 |
68 |
69 | Menus.ctmenu
70 | VsctGenerator
71 | VSCommandTable.cs
72 |
73 |
74 | True
75 | True
76 | VSCommandTable.vsct
77 |
78 |
79 |
80 |
81 | Resources\LICENSE
82 | true
83 |
84 |
85 | Designer
86 | VsixManifestGenerator
87 | source.extension.cs
88 |
89 |
90 | PreserveNewest
91 | true
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 | compile; build; native; contentfiles; analyzers; buildtransitive
103 |
104 |
105 | runtime; build; native; contentfiles; analyzers; buildtransitive
106 | all
107 |
108 |
109 |
110 |
111 |
118 |
--------------------------------------------------------------------------------
/.github/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | Looking to contribute something? **Here's how you can help.**
4 |
5 | Please take a moment to review this document in order to make the contribution
6 | process easy and effective for everyone involved.
7 |
8 | Following these guidelines helps to communicate that you respect the time of
9 | the developers managing and developing this open source project. In return,
10 | they should reciprocate that respect in addressing your issue or assessing
11 | patches and features.
12 |
13 |
14 | ## Using the issue tracker
15 |
16 | The issue tracker is the preferred channel for [bug reports](#bug-reports),
17 | [features requests](#feature-requests) and
18 | [submitting pull requests](#pull-requests), but please respect the
19 | following restrictions:
20 |
21 | * Please **do not** use the issue tracker for personal support requests. Stack
22 | Overflow is a better place to get help.
23 |
24 | * Please **do not** derail or troll issues. Keep the discussion on topic and
25 | respect the opinions of others.
26 |
27 | * Please **do not** open issues or pull requests which *belongs to* third party
28 | components.
29 |
30 |
31 | ## Bug reports
32 |
33 | A bug is a _demonstrable problem_ that is caused by the code in the repository.
34 | Good bug reports are extremely helpful, so thanks!
35 |
36 | Guidelines for bug reports:
37 |
38 | 1. **Use the GitHub issue search** — check if the issue has already been
39 | reported.
40 |
41 | 2. **Check if the issue has been fixed** — try to reproduce it using the
42 | latest `master` or development branch in the repository.
43 |
44 | 3. **Isolate the problem** — ideally create an
45 | [SSCCE](http://www.sscce.org/) and a live example.
46 | Uploading the project on cloud storage (OneDrive, DropBox, et el.)
47 | or creating a sample GitHub repository is also helpful.
48 |
49 |
50 | A good bug report shouldn't leave others needing to chase you up for more
51 | information. Please try to be as detailed as possible in your report. What is
52 | your environment? What steps will reproduce the issue? What browser(s) and OS
53 | experience the problem? Do other browsers show the bug differently? What
54 | would you expect to be the outcome? All these details will help people to fix
55 | any potential bugs.
56 |
57 | Example:
58 |
59 | > Short and descriptive example bug report title
60 | >
61 | > A summary of the issue and the Visual Studio, browser, OS environments
62 | > in which it occurs. If suitable, include the steps required to reproduce the bug.
63 | >
64 | > 1. This is the first step
65 | > 2. This is the second step
66 | > 3. Further steps, etc.
67 | >
68 | > `` - a link to the project/file uploaded on cloud storage or other publicly accessible medium.
69 | >
70 | > Any other information you want to share that is relevant to the issue being
71 | > reported. This might include the lines of code that you have identified as
72 | > causing the bug, and potential solutions (and your opinions on their
73 | > merits).
74 |
75 |
76 | ## Feature requests
77 |
78 | Feature requests are welcome. But take a moment to find out whether your idea
79 | fits with the scope and aims of the project. It's up to *you* to make a strong
80 | case to convince the project's developers of the merits of this feature. Please
81 | provide as much detail and context as possible.
82 |
83 |
84 | ## Pull requests
85 |
86 | Good pull requests, patches, improvements and new features are a fantastic
87 | help. They should remain focused in scope and avoid containing unrelated
88 | commits.
89 |
90 | **Please ask first** before embarking on any significant pull request (e.g.
91 | implementing features, refactoring code, porting to a different language),
92 | otherwise you risk spending a lot of time working on something that the
93 | project's developers might not want to merge into the project.
94 |
95 | Please adhere to the [coding guidelines](#code-guidelines) used throughout the
96 | project (indentation, accurate comments, etc.) and any other requirements
97 | (such as test coverage).
98 |
99 | Adhering to the following process is the best way to get your work
100 | included in the project:
101 |
102 | 1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,
103 | and configure the remotes:
104 |
105 | ```bash
106 | # Clone your fork of the repo into the current directory
107 | git clone https://github.com//.git
108 | # Navigate to the newly cloned directory
109 | cd
110 | # Assign the original repo to a remote called "upstream"
111 | git remote add upstream https://github.com/madskristensen/.git
112 | ```
113 |
114 | 2. If you cloned a while ago, get the latest changes from upstream:
115 |
116 | ```bash
117 | git checkout master
118 | git pull upstream master
119 | ```
120 |
121 | 3. Create a new topic branch (off the main project development branch) to
122 | contain your feature, change, or fix:
123 |
124 | ```bash
125 | git checkout -b
126 | ```
127 |
128 | 4. Commit your changes in logical chunks. Please adhere to these [git commit
129 | message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
130 | or your code is unlikely be merged into the main project. Use Git's
131 | [interactive rebase](https://help.github.com/articles/interactive-rebase)
132 | feature to tidy up your commits before making them public. Also, prepend name of the feature
133 | to the commit message. For instance: "SCSS: Fixes compiler results for IFileListener.\nFixes `#123`"
134 |
135 | 5. Locally merge (or rebase) the upstream development branch into your topic branch:
136 |
137 | ```bash
138 | git pull [--rebase] upstream master
139 | ```
140 |
141 | 6. Push your topic branch up to your fork:
142 |
143 | ```bash
144 | git push origin
145 | ```
146 |
147 | 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
148 | with a clear title and description against the `master` branch.
149 |
150 |
151 | ## Code guidelines
152 |
153 | - Always use proper indentation.
154 | - In Visual Studio under `Tools > Options > Text Editor > C# > Advanced`, make sure
155 | `Place 'System' directives first when sorting usings` option is enabled (checked).
156 | - Before committing, organize usings for each updated C# source file. Either you can
157 | right-click editor and select `Organize Usings > Remove and sort` OR use extension
158 | like [BatchFormat](https://marketplace.visualstudio.com/items?itemName=vs-publisher-147549.BatchFormat).
159 | - Before committing, run Code Analysis in `Debug` configuration and follow the guidelines
160 | to fix CA issues. Code Analysis commits can be made separately.
161 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright 2020 Mads Kristensen
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------